[next] telepathy-haze: haze_connection_avatars_fill_contact_attributes: don't leak the token

Simon McVittie smcv at kemper.freedesktop.org
Wed May 7 02:18:33 PDT 2014


Module: telepathy-haze
Branch: next
Commit: b599135eb11d35fba5ee217506d50b3f6d85bf02
URL:    http://cgit.freedesktop.org/telepathy/telepathy-haze/commit/?id=b599135eb11d35fba5ee217506d50b3f6d85bf02

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Tue Apr 22 13:23:13 2014 +0100

haze_connection_avatars_fill_contact_attributes: don't leak the token

---

 src/connection-avatars.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/connection-avatars.c b/src/connection-avatars.c
index 53e15d9..13df60a 100644
--- a/src/connection-avatars.c
+++ b/src/connection-avatars.c
@@ -529,6 +529,7 @@ haze_connection_avatars_fill_contact_attributes (HazeConnection *self,
 
         tp_contact_attribute_map_take_sliced_gvalue (attributes, handle,
             TP_TOKEN_CONNECTION_INTERFACE_AVATARS1_TOKEN, value);
+        g_free (token);
         return TRUE;
     }
 



More information about the telepathy-commits mailing list