[dconf] dconf_rebuilder_get_parent: don't leak parent_name



commit f732fba794d380a6c70ce7f82c3326a484909fba
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Oct 21 12:50:19 2012 -0400

    dconf_rebuilder_get_parent: don't leak parent_name
    
    Leak introduced in facae6ffcd5b2935f9b708eecb1fd5aa7c8ddf86.
    Tracked down by Fabien Tassin in
    https://bugzilla.gnome.org/show_bug.cgi?id=686573

 service/dconf-rebuilder.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/service/dconf-rebuilder.c b/service/dconf-rebuilder.c
index 3f170d6..2b79e18 100644
--- a/service/dconf-rebuilder.c
+++ b/service/dconf-rebuilder.c
@@ -57,6 +57,7 @@ dconf_rebuilder_get_parent (GHashTable  *table,
       if (grandparent != NULL)
         gvdb_item_set_parent (parent, grandparent);
     }
+  g_free (parent_name);
 
   return parent;
 }



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