[glib: 3/11] glocalfile: Fix a minor memory leak



commit 61da8748fdfb1a86b3a0493bbc0dd03ff17dcb22
Author: Philip Withnall <withnall endlessm com>
Date:   Wed Jun 27 09:53:26 2018 +0100

    glocalfile: Fix a minor memory leak
    
    Signed-off-by: Philip Withnall <withnall endlessm com>

 gio/glocalfile.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index 1c8fa42e8..83dff4342 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -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))
     {
       g_clear_pointer (&mount, g_unix_mount_free);
+      g_free (topdir);
 
       return FALSE;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]