mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-05 08:56:16 +01:00
GVariant: fix two small/theoretical leaks
Fix some leaks that turned up while valgrinding the GVariant testcase. These leaks are small and only occur when there is already an error in the program: they are leaks of temp strings used when formatting a critical message. These show up as leaks again the testcase under the new "expect messages" approach. Previously, we fork()ed and these caused the subprocess to abort, which is why this was not noticed before.
This commit is contained in:
parent
1c586e44be
commit
662e3c4891
@ -4006,6 +4006,8 @@ valid_format_string (const gchar *format_string,
|
||||
fragment, typestr, g_variant_get_type_string (value));
|
||||
|
||||
g_variant_type_free (type);
|
||||
g_free (fragment);
|
||||
g_free (typestr);
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user