[Telepathy-commits] [telepathy-gabble/master] Don't leak the channel that listens for incoming socks5 connections
Marco Barisione
marco at barisione.org
Tue Jan 6 08:41:29 PST 2009
---
src/bytestream-socks5.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/bytestream-socks5.c b/src/bytestream-socks5.c
index 0923c98..f570ccc 100644
--- a/src/bytestream-socks5.c
+++ b/src/bytestream-socks5.c
@@ -1356,6 +1356,8 @@ gabble_bytestream_socks5_initiate (GabbleBytestreamIface *iface)
priv->read_watch = g_io_add_watch (channel, G_IO_IN | G_IO_HUP | G_IO_ERR,
socks5_listen_cb, self);
+ g_io_channel_unref (channel);
+
addr_len = sizeof (addr);
getsockname (fd, (struct sockaddr *)&addr, &addr_len);
g_ascii_dtostr (port, G_N_ELEMENTS (port), ntohs (addr.sin_port));
--
1.5.6.5
More information about the Telepathy-commits
mailing list