summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2013-11-09 20:26:15 +0100
committerStef Walter <stefw@gnome.org>2013-11-10 22:41:44 +0100
commitfc4630b7ac089fcd1aff1c8376433e971ab193dd (patch)
treed1f55e42f06a781eb304f105c23851fc9879c0a9 /tests
parentee743674a16f251bb275d6ee59f6da8cbf2b2910 (diff)
gio-test: Fix leaks in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711751
Diffstat (limited to 'tests')
-rw-r--r--tests/gio-test.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/gio-test.c b/tests/gio-test.c
index 7c28497da..06c385cc5 100644
--- a/tests/gio-test.c
+++ b/tests/gio-test.c
@@ -343,6 +343,7 @@ main (int argc,
pipe_to_sub[0], pipe_from_sub[1]);
system (cmdline);
+ g_free (cmdline);
#endif
close (pipe_to_sub[0]);
close (pipe_from_sub [1]);
@@ -359,11 +360,16 @@ main (int argc,
(end.tv_usec - start.tv_usec) / 1000,
pollresult);
#endif
+ g_io_channel_unref (my_read_channel);
}
main_loop = g_main_loop_new (NULL, FALSE);
g_main_loop_run (main_loop);
+
+ g_main_loop_unref (main_loop);
+ g_free (seqtab);
+ g_free (id);
}
else if (argc == 3)
{