diff options
Diffstat (limited to 'tcp-accept.c')
-rw-r--r-- | tcp-accept.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tcp-accept.c b/tcp-accept.c index c2fb2fe..14a6312 100644 --- a/tcp-accept.c +++ b/tcp-accept.c @@ -126,7 +126,9 @@ int listen_tcpfwd(struct TCPListener* tcpinfo) { TRACE(("leave listen_tcpfwd: dropbear_listen failed")) return DROPBEAR_FAILURE; } - + m_free(errstring); + + /* new_listener will close the socks if it fails */ listener = new_listener(socks, nsocks, CHANNEL_ID_TCPFORWARDED, tcpinfo, tcp_acceptor, cleanup_tcp); |