Commit b73d1c8f authored by Martin Hurton's avatar Martin Hurton

Fix memory leak in socks connecter

parent 79d578ef
......@@ -62,6 +62,7 @@ zmq::socks_connecter_t::socks_connecter_t (class io_thread_t *io_thread_,
zmq::socks_connecter_t::~socks_connecter_t ()
{
zmq_assert (s == retired_fd);
delete proxy_addr;
}
void zmq::socks_connecter_t::process_plug ()
......
......@@ -112,6 +112,7 @@ namespace zmq
// Address to connect to. Owned by session_base_t.
address_t *addr;
// SOCKS address; owned by this connecter.
address_t *proxy_addr;
int status;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment