[Telepathy-commits] [telepathy-salut/master] tube_stream_open: Fix: free the path after using it
Alban Crequy
alban.crequy at collabora.co.uk
Tue Nov 25 03:59:41 PST 2008
---
src/tube-stream.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/tube-stream.c b/src/tube-stream.c
index 167d34a..1cffeb8 100644
--- a/src/tube-stream.c
+++ b/src/tube-stream.c
@@ -709,7 +709,6 @@ tube_stream_open (SalutTubeStream *self,
g_value_set_boxed (priv->address, array);
g_array_free (array, TRUE);
- g_free (path);
ret = gibber_listener_listen_socket (priv->local_listener, path, FALSE,
error);
@@ -717,8 +716,10 @@ tube_stream_open (SalutTubeStream *self,
{
g_assert (error != NULL && *error != NULL);
DEBUG ("Error listening on socket %s: %s", path, (*error)->message);
+ g_free (path);
return FALSE;
}
+ g_free (path);
}
else if (priv->address_type == TP_SOCKET_ADDRESS_TYPE_IPV4)
{
--
1.5.6.5
More information about the Telepathy-commits
mailing list