SF.net SVN: geany:[4268] trunk/src/templates.c

ntrel at users.sourceforge.net ntrel at xxxxx
Tue Sep 29 14:12:55 UTC 2009


Revision: 4268
          http://geany.svn.sourceforge.net/geany/?rev=4268&view=rev
Author:   ntrel
Date:     2009-09-29 14:12:55 +0000 (Tue, 29 Sep 2009)

Log Message:
-----------
Fix minor memory leak.

Modified Paths:
--------------
    trunk/src/templates.c

Modified: trunk/src/templates.c
===================================================================
--- trunk/src/templates.c	2009-09-29 13:57:43 UTC (rev 4267)
+++ trunk/src/templates.c	2009-09-29 14:12:55 UTC (rev 4268)
@@ -534,6 +534,7 @@
 	if (!list)
 	{
 		utils_mkdir(path, FALSE);
+		g_free(path);
 		return FALSE;
 	}
 	list = g_slist_sort(list, compare_filenames_by_filetype);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list