diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-03-24 11:34:20 +0000 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-03-24 11:34:20 +0000 |
commit | 42edf30b88986a29cbbc811efea10084efe2f2f7 (patch) | |
tree | 0baf92d8b0f34aa227514117c008b0ef6e14cc3b /lib | |
parent | f12c6f1b6f07544f614bb1815aaf78d5a6f0c610 (diff) | |
download | telepathy-salut-42edf30b88986a29cbbc811efea10084efe2f2f7.tar.gz |
bytestream-oob: ensure we free the socket address in an error
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gibber/gibber-bytestream-oob.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/gibber/gibber-bytestream-oob.c b/lib/gibber/gibber-bytestream-oob.c index f9238772..440ae4a7 100644 --- a/lib/gibber/gibber-bytestream-oob.c +++ b/lib/gibber/gibber-bytestream-oob.c @@ -305,8 +305,6 @@ connect_to_url (GibberBytestreamOOB *self) goto out; } - g_object_unref (socket_address); - addr.in.sin_port = g_htons ((guint16) portnum); ll_transport = gibber_ll_transport_new (); @@ -315,6 +313,9 @@ connect_to_url (GibberBytestreamOOB *self) g_object_unref (ll_transport); out: + if (socket_address != NULL) + g_object_unref (socket_address); + g_strfreev (tokens); } |