mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
gtestutils: Fix a minor memory leak
Coverity CID: #1430603 Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
parent
fb6da5677b
commit
b639687b60
@ -1530,7 +1530,10 @@ void
|
|||||||
|
|
||||||
test_prgname = g_path_get_basename (g_get_prgname ());
|
test_prgname = g_path_get_basename (g_get_prgname ());
|
||||||
if (*test_prgname == '\0')
|
if (*test_prgname == '\0')
|
||||||
test_prgname = g_strdup ("unknown");
|
{
|
||||||
|
g_free (test_prgname);
|
||||||
|
test_prgname = g_strdup ("unknown");
|
||||||
|
}
|
||||||
tmpl = g_strdup_printf ("test_%s_XXXXXX", test_prgname);
|
tmpl = g_strdup_printf ("test_%s_XXXXXX", test_prgname);
|
||||||
g_free (test_prgname);
|
g_free (test_prgname);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user