From 302c7bee506f3a792cd2fc94b2be7d3aed039721 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Fri, 5 Feb 2016 15:14:51 +0000 Subject: [PATCH] Problem: test_fork does not clean up at exit Solution: close socket and destroy context to reduce Valgrind noise --- tests/test_fork.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_fork.cpp b/tests/test_fork.cpp index 70f4a77c..5370f583 100644 --- a/tests/test_fork.cpp +++ b/tests/test_fork.cpp @@ -86,6 +86,8 @@ int main (void) assert (WEXITSTATUS (child_status) == 0); break; } + zmq_close (pull); + zmq_ctx_term (ctx); exit (0); } #endif