mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-01 21:13:13 +01: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:
@@ -86,6 +86,8 @@ int main (void)
|
||||
assert (WEXITSTATUS (child_status) == 0);
|
||||
break;
|
||||
}
|
||||
zmq_close (pull);
|
||||
zmq_ctx_term (ctx);
|
||||
exit (0);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user