From 6bcdd93e45fbd8f600a5554b8aaecfde722c720e Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Sat, 13 Apr 2013 19:34:34 +0000 Subject: [PATCH] (trunk libT) #5318: 'socket leak when bind() fails': fixed. --- libtransmission/net.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libtransmission/net.c b/libtransmission/net.c index 598bdf863..8052c23bf 100644 --- a/libtransmission/net.c +++ b/libtransmission/net.c @@ -268,6 +268,7 @@ tr_netOpenPeerSocket (tr_session * session, { tr_logAddError (_("Couldn't set source address %s on %d: %s"), tr_address_to_string (source_addr), s, tr_strerror (errno)); + tr_netClose (session, s); return -errno; }