BAT-40 Found leak in imzmq3 plugin

For some reason I forgot to free() the buffer that comes back from
zstr_recv().  Doh!
This commit is contained in:
David Kelly 2012-07-06 11:45:22 -07:00 committed by Rainer Gerhards
parent 9900fbe2e8
commit 91b7e5e34a

View File

@ -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