[next] telepathy-glib: test-connection-error: fix str leak

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Thu Feb 27 06:07:36 PST 2014


Module: telepathy-glib
Branch: next
Commit: 292944401d9f71eb8fcbb8781b73bdf61826da08
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=292944401d9f71eb8fcbb8781b73bdf61826da08

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Thu Feb 27 15:05:31 2014 +0100

test-connection-error: fix str leak

---

 tests/dbus/connection-error.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/dbus/connection-error.c b/tests/dbus/connection-error.c
index 6be61b4..b9c5cc0 100644
--- a/tests/dbus/connection-error.c
+++ b/tests/dbus/connection-error.c
@@ -241,6 +241,7 @@ test_unregistered_error (Test *test,
   str = tp_connection_dup_detailed_error (test->conn, &asv);
   g_assert_cmpstr (str, ==, "net.example.WTF");
   g_assert (asv != NULL);
+  g_free (str);
   g_variant_unref (asv);
 
   g_error_free (error);



More information about the telepathy-commits mailing list