[geany/geany-plugins] 113dbd: Merge pull request #138 from scriptum/geanyprj-memleak

Frank Lanitz git-noreply at xxxxx
Mon Oct 6 10:39:34 UTC 2014


Branch:      refs/heads/master
Author:      Frank Lanitz <frank at frank.uvena.de>
Committer:   Frank Lanitz <frank at frank.uvena.de>
Date:        Mon, 06 Oct 2014 10:39:34 UTC
Commit:      113dbd86dacb3e908e9c632ee15746b0d79ccb1b
             https://github.com/geany/geany-plugins/commit/113dbd86dacb3e908e9c632ee15746b0d79ccb1b

Log Message:
-----------
Merge pull request #138 from scriptum/geanyprj-memleak

Geanyprj: fix memory leak, fix false positive


Modified Paths:
--------------
    geanyprj/src/Makefile.am
    geanyprj/src/project.c

Modified: geanyprj/src/Makefile.am
3 lines changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -13,4 +13,7 @@ geanyprj_la_SOURCES = geanyprj.c \
 geanyprj_la_CFLAGS = $(AM_CFLAGS)
 geanyprj_la_LIBADD = $(COMMONLIBS)
 
+AM_CPPCHECKFLAGS = --suppress='constStatement:*'
+AM_CPPCHECKFLAGS += --suppress='memleak:utils.c:72'
+
 include $(top_srcdir)/build/cppcheck.mk


Modified: geanyprj/src/project.c
1 lines changed, 1 insertions(+), 0 deletions(-)
===================================================================
@@ -360,6 +360,7 @@ gboolean geany_project_add_file(struct GeanyPrj *prj, const gchar *path)
 		g_key_file_free(config);
 		return TRUE;
 	}
+	g_key_file_free(config);
 
 	filename = utils_get_locale_from_utf8(path);
 	tm_obj = tm_source_file_new(filename, FALSE, filetypes_detect_from_file(path)->name);



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Plugins-Commits mailing list