mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-20 08:30:42 +01:00
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:
parent
9900fbe2e8
commit
91b7e5e34a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user