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:
parent
79d578ef0b
commit
b73d1c8fed
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user