mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
girepository: Fix various leaks in cmph-bdz-test
See https://gitlab.gnome.org/GNOME/glib/-/jobs/3294034 Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
parent
af30e69140
commit
aed9098530
@ -42,6 +42,10 @@ build (void)
|
||||
size = cmph_size (c);
|
||||
g_assert (size == g_strv_length (strings));
|
||||
|
||||
cmph_config_destroy (config);
|
||||
cmph_io_vector_adapter_destroy (io);
|
||||
g_strfreev (strings);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
@ -87,6 +91,8 @@ test_search (void)
|
||||
hashes[i++] = hash;
|
||||
|
||||
assert_hashes_unique (G_N_ELEMENTS (hashes), &hashes[0]);
|
||||
|
||||
cmph_destroy (c);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -123,6 +129,8 @@ test_search_packed (void)
|
||||
hashes[i++] = hash;
|
||||
|
||||
assert_hashes_unique (G_N_ELEMENTS (hashes), &hashes[0]);
|
||||
|
||||
g_free (buf);
|
||||
}
|
||||
|
||||
int
|
||||
|
Loading…
Reference in New Issue
Block a user