test-credentials: Fix leak
authorOlivier Crête <olivier.crete@collabora.com>
Wed, 5 Apr 2017 21:01:35 +0000 (17:01 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Wed, 5 Apr 2017 21:12:17 +0000 (17:12 -0400)
tests/test-credentials.c

index 1de4e49..f1ea89d 100644 (file)
@@ -184,6 +184,8 @@ int main (void)
   nice_agent_get_local_credentials (lagent, 1, &ufrag, &password);
   g_assert (g_strcmp0("unicorns", ufrag) == 0);
   g_assert (g_strcmp0("awesome", password) == 0);
+  g_free (ufrag);
+  g_free (password);
 
   nice_agent_gather_candidates (lagent, 1);
   nice_agent_gather_candidates (ragent, 1);