[glib] xdgmime: plug a small leak



commit 4e7031f073db2df7297feab35c9d353b0b3977d8
Author: Dan Winship <danw gnome org>
Date:   Fri Aug 24 17:03:35 2012 -0400

    xdgmime: plug a small leak
    
    https://bugzilla.gnome.org/show_bug.cgi?id=682560

 gio/xdgmime/xdgmime.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/xdgmime/xdgmime.c b/gio/xdgmime/xdgmime.c
index 846be39..ee79da7 100644
--- a/gio/xdgmime/xdgmime.c
+++ b/gio/xdgmime/xdgmime.c
@@ -156,6 +156,7 @@ xdg_mime_init_from_directory (const char *directory)
           _caches[n_caches + 1] = NULL;
 	  n_caches++;
 
+          free (file_name);
 	  return FALSE;
 	}
     }



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