test/containers: Fix some memory leaks

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107194
This commit is contained in:
Simon McVittie 2018-07-12 14:23:06 +01:00
parent 8095e52e5c
commit 620406f757

View file

@ -1079,6 +1079,7 @@ test_stop_server (Fixture *f,
g_free (error_name);
g_assert_null (tuple);
g_clear_error (&f->error);
g_clear_object (&socket_address);
#else /* !HAVE_CONTAINERS_TEST */
g_test_skip ("Containers or gio-unix-2.0 not supported");
@ -1548,6 +1549,9 @@ test_max_connections_per_container (Fixture *f,
g_clear_object (&socket_addresses[i]);
}
for (i = 0; i < G_N_ELEMENTS (placeholders); i++)
g_clear_object (&placeholders[i]);
#undef LIMIT
#else /* !HAVE_CONTAINERS_TEST */
g_test_skip ("Containers or gio-unix-2.0 not supported");