From 8d85638f77ec0aa886170ba6bb49763ef165393b Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Thu, 26 Nov 2009 12:01:26 +0100 Subject: memory leak in message encoder fixed --- perf/c/local_thr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'perf') 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; -- cgit v1.2.3