[gvfs] hal: Fix a memory leak in hal-volume-monitor.



commit 06677b95fddcd7973d296ff596031d7b9d890762
Author: David Liang <liangchenye gmail com>
Date:   Thu Apr 2 09:16:16 2015 +0800

    hal: Fix a memory leak in hal-volume-monitor.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=747221

 monitor/hal/ghalvolumemonitor.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/monitor/hal/ghalvolumemonitor.c b/monitor/hal/ghalvolumemonitor.c
index 5082fc8..b0fb629 100644
--- a/monitor/hal/ghalvolumemonitor.c
+++ b/monitor/hal/ghalvolumemonitor.c
@@ -864,6 +864,7 @@ should_drive_be_ignored (HalPool *pool, HalDevice *d, GList *fstab_mount_points)
         }
     }
 
+  g_list_free (volumes);
   return got_volumes && all_volumes_ignored;
 }
 


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