mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-23 00:08:02 +02:00
Problem: test_system does not clean up at exit
Solution: close socket and destroy context to reduce Valgrind noise
This commit is contained in:
@@ -97,4 +97,7 @@ int main (void)
|
|||||||
for (count = 0; count < 1000; count++) {
|
for (count = 0; count < 1000; count++) {
|
||||||
close(handle[count]);
|
close(handle[count]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
zmq_close(dealer);
|
||||||
|
zmq_ctx_term(ctx);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user