Commit 61da8748 authored by Philip Withnall's avatar Philip Withnall

glocalfile: Fix a minor memory leak

Signed-off-by: Philip Withnall's avatarPhilip Withnall <>
parent 6db2412b
...@@ -1807,6 +1807,7 @@ _g_local_file_has_trash_dir (const char *dirname, dev_t dir_dev) ...@@ -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;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment