0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-29 00:32:34 +08:00

Fix memory leak in socks connecter

This commit is contained in:
Martin Hurton 2014-06-23 00:01:58 +02:00
parent 79d578ef0b
commit b73d1c8fed
2 changed files with 2 additions and 0 deletions

View File

@ -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 ()

View File

@ -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;