[gimp] libgimpconfig: don't leak "expanded" in gimp_config_path_expand_to_files()



commit 23d3f5aa47c79e4e369957a437567c6b2a931c32
Author: Michael Natterer <mitch gimp org>
Date:   Mon Oct 6 20:33:09 2014 +0200

    libgimpconfig: don't leak "expanded" in gimp_config_path_expand_to_files()

 libgimpconfig/gimpconfig-path.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/libgimpconfig/gimpconfig-path.c b/libgimpconfig/gimpconfig-path.c
index 2a53573..b5bb139 100644
--- a/libgimpconfig/gimpconfig-path.c
+++ b/libgimpconfig/gimpconfig-path.c
@@ -348,6 +348,8 @@ gimp_config_path_expand_to_files (const gchar  *path,
 
   files = gimp_path_parse (expanded, 256, FALSE, NULL);
 
+  g_free (expanded);
+
   for (list = files; list; list = g_list_next (list))
     {
       gchar *dir = list->data;


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