mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-23 21:42:16 +02:00
glib/tests: fix leaks
https://bugzilla.gnome.org/show_bug.cgi?id=682560
This commit is contained in:
@@ -669,6 +669,7 @@ test_file_open_tmp (void)
|
||||
g_assert_no_error (error);
|
||||
g_assert (name != NULL);
|
||||
unlink (name);
|
||||
g_free (name);
|
||||
close (fd);
|
||||
|
||||
fd = g_file_open_tmp (NULL, &name, &error);
|
||||
@@ -676,6 +677,7 @@ test_file_open_tmp (void)
|
||||
g_assert_no_error (error);
|
||||
g_assert (name != NULL);
|
||||
g_unlink (name);
|
||||
g_free (name);
|
||||
close (fd);
|
||||
|
||||
name = NULL;
|
||||
|
Reference in New Issue
Block a user