Problem: test_system 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 11:56:45 +00:00
parent 18dcc32ac3
commit e177512c82

View File

@ -97,4 +97,7 @@ int main (void)
for (count = 0; count < 1000; count++) {
close(handle[count]);
}
zmq_close(dealer);
zmq_ctx_term(ctx);
}