From ad1c1d9889887193fcdf2942a0cbd3a7915d29e8 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Thu, 1 Oct 2009 16:43:32 +0000 Subject: [PATCH] Fix minor mem leak. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4284 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- src/templates.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/templates.c b/src/templates.c index 549b5811..6c907241 100644 --- a/src/templates.c +++ b/src/templates.c @@ -319,6 +319,7 @@ on_new_with_file_template(GtkMenuItem *menuitem, G_GNUC_UNUSED gpointer user_dat if (!template) { /* try the system path */ + g_free(path); path = g_build_path(G_DIR_SEPARATOR_S, app->datadir, GEANY_TEMPLATES_SUBDIR, "files", fname, NULL); template = get_template_from_file(path, new_filename, ft);