summaryrefslogtreecommitdiff
path: root/perf/c
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-11-26 12:01:26 +0100
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-11-26 12:01:26 +0100
commit8d85638f77ec0aa886170ba6bb49763ef165393b (patch)
tree438957d3dac3fb738c26426904817377025d0094 /perf/c
parent92aa9e94e21b652839faa3dda27c67571bad315d (diff)
memory leak in message encoder fixed
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;