0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

Problem: test_fork does not clean up at exit

Solution: close socket and destroy context to reduce Valgrind noise
This commit is contained in:
Luca Boccassi 2016-02-05 15:14:51 +00:00
parent f87888f80c
commit 302c7bee50

View File

@ -86,6 +86,8 @@ int main (void)
assert (WEXITSTATUS (child_status) == 0);
break;
}
zmq_close (pull);
zmq_ctx_term (ctx);
exit (0);
}
#endif