summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/imzmq3/imzmq3.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/imzmq3/imzmq3.c b/plugins/imzmq3/imzmq3.c
index 78eee887..8107a1fc 100644
--- a/plugins/imzmq3/imzmq3.c
+++ b/plugins/imzmq3/imzmq3.c
@@ -491,7 +491,10 @@ static int handlePoll(zloop_t __attribute__((unused)) * loop, zmq_pollitem_t *po
logmsg->msgFlags = NEEDS_PARSING;
submitMsg(logmsg);
}
-
+
+ /* gotta free the string returned from zstr_recv() */
+ free(buf);
+
if( pollerData->thread->bShallStop == TRUE) {
/* a handler that returns -1 will terminate the
czmq reactor loop