0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 15:41:05 +08:00

Merge pull request #2582 from bluca/test_poller_use_after_free

Problem: use-after-free in test_poller
This commit is contained in:
Doron Somech 2017-05-18 15:37:31 +03:00 committed by GitHub
commit 92339a4d9d

View File

@ -150,6 +150,10 @@ int main (void)
assert (event.socket == server);
assert (event.user_data == NULL);
assert (event.events == ZMQ_POLLOUT);
// Stop polling server
rc = zmq_poller_remove (poller, server);
assert (rc == 0);
#endif
// Destory sockets, poller and ctx