mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 15:18:55 +02:00
glocalfile: Fix a minor memory leak
Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
@@ -1807,6 +1807,7 @@ _g_local_file_has_trash_dir (const char *dirname, dev_t dir_dev)
|
|||||||
if (mount == NULL || g_unix_mount_is_system_internal (mount))
|
if (mount == NULL || g_unix_mount_is_system_internal (mount))
|
||||||
{
|
{
|
||||||
g_clear_pointer (&mount, g_unix_mount_free);
|
g_clear_pointer (&mount, g_unix_mount_free);
|
||||||
|
g_free (topdir);
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user