mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-24 04:56:14 +01:00
Merge branch 'leak-fixes' into 'main'
Fix various leaks in cmph-bdz-test and gutils See merge request GNOME/glib!3708
This commit is contained in:
commit
00f836b11a
@ -42,6 +42,10 @@ build (void)
|
||||
size = cmph_size (c);
|
||||
g_assert_cmpuint (size, ==, g_strv_length (strings));
|
||||
|
||||
cmph_config_destroy (config);
|
||||
cmph_io_vector_adapter_destroy (io);
|
||||
g_strfreev (strings);
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
@ -90,6 +94,8 @@ test_search (void)
|
||||
hashes[i++] = hash;
|
||||
|
||||
assert_hashes_unique (G_N_ELEMENTS (hashes), &hashes[0]);
|
||||
|
||||
cmph_destroy (c);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -129,6 +135,8 @@ test_search_packed (void)
|
||||
hashes[i++] = hash;
|
||||
|
||||
assert_hashes_unique (G_N_ELEMENTS (hashes), &hashes[0]);
|
||||
|
||||
g_free (buf);
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -1883,6 +1883,7 @@ g_build_user_data_dir (void)
|
||||
if (!data_dir || !data_dir[0])
|
||||
{
|
||||
gchar *home_dir = g_build_home_dir ();
|
||||
g_free (data_dir);
|
||||
data_dir = g_build_filename (home_dir, ".local", "share", NULL);
|
||||
g_free (home_dir);
|
||||
}
|
||||
|
@ -867,7 +867,7 @@
|
||||
{
|
||||
g_get_system_data_dirs
|
||||
Memcheck:Leak
|
||||
match-leak-kinds:reachable
|
||||
match-leak-kinds:definite,reachable
|
||||
fun:malloc
|
||||
...
|
||||
fun:g_build_system_data_dirs
|
||||
@ -878,7 +878,7 @@
|
||||
{
|
||||
g_get_user_data_dir
|
||||
Memcheck:Leak
|
||||
match-leak-kinds:reachable
|
||||
match-leak-kinds:definite,reachable
|
||||
fun:realloc
|
||||
...
|
||||
fun:g_build_user_data_dir
|
||||
@ -889,7 +889,7 @@
|
||||
{
|
||||
g_get_home_dir
|
||||
Memcheck:Leak
|
||||
match-leak-kinds:reachable
|
||||
match-leak-kinds:definite,reachable
|
||||
fun:malloc
|
||||
...
|
||||
fun:g_build_home_dir
|
||||
|
Loading…
Reference in New Issue
Block a user