mirror of
https://github.com/zeromq/libzmq.git
synced 2025-03-10 07:56:09 +00:00
ZMQII-31: memory leak in zmq_poll (on timeout)
This commit is contained in:
parent
9fc8827b8a
commit
e806615dd1
1
AUTHORS
1
AUTHORS
@ -10,6 +10,7 @@ Erich Heine
|
|||||||
Frank Denis
|
Frank Denis
|
||||||
George Neill
|
George Neill
|
||||||
Jon Dyte
|
Jon Dyte
|
||||||
|
Kamil Shakirov
|
||||||
Martin Hurton
|
Martin Hurton
|
||||||
Martin Lucina
|
Martin Lucina
|
||||||
Martin Sustrik
|
Martin Sustrik
|
||||||
|
@ -338,8 +338,10 @@ int zmq_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
|
|||||||
errno_assert (rc >= 0);
|
errno_assert (rc >= 0);
|
||||||
|
|
||||||
// If timeout was hit with no events signaled, return zero.
|
// If timeout was hit with no events signaled, return zero.
|
||||||
if (!initial && rc == 0)
|
if (!initial && rc == 0) {
|
||||||
|
free (pollfds);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// From now on, perform blocking polling.
|
// From now on, perform blocking polling.
|
||||||
initial = false;
|
initial = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user