0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-02 03:08:04 +08:00

Pieter's change to fix memory leak on mechanism

This commit is contained in:
Ian Barber 2013-05-29 21:58:20 +01:00
parent 240eff384a
commit 9a0b2c8970

View File

@ -133,6 +133,8 @@ zmq::stream_engine_t::~stream_engine_t ()
delete encoder; delete encoder;
if (decoder != NULL) if (decoder != NULL)
delete decoder; delete decoder;
if (mechanism != NULL)
delete mechanism;
} }
void zmq::stream_engine_t::plug (io_thread_t *io_thread_, void zmq::stream_engine_t::plug (io_thread_t *io_thread_,