mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 15:41:05 +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:
parent
f87888f80c
commit
302c7bee50
@ -86,6 +86,8 @@ int main (void)
|
||||
assert (WEXITSTATUS (child_status) == 0);
|
||||
break;
|
||||
}
|
||||
zmq_close (pull);
|
||||
zmq_ctx_term (ctx);
|
||||
exit (0);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user