summaryrefslogtreecommitdiff
path: root/perf/c
diff options
context:
space:
mode:
Diffstat (limited to 'perf/c')
-rw-r--r--perf/c/local_thr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/perf/c/local_thr.c b/perf/c/local_thr.c
index c97af11..f785e80 100644
--- a/perf/c/local_thr.c
+++ b/perf/c/local_thr.c
@@ -79,6 +79,9 @@ int main (int argc, char *argv [])
if (elapsed == 0)
elapsed = 1;
+ rc = zmq_msg_close (&msg);
+ assert (rc == 0);
+
throughput = (unsigned long)
((double) message_count / (double) elapsed * 1000000);
megabits = (double) (throughput * message_size * 8) / 1000000;