[Geany-Devel] GProject memory leak

Pavel Roschin roshin at xxxxx
Fri May 9 20:07:40 UTC 2014


Found several memory leaks in GProject plugin.

gproject-project.c:467:
void gprj_project_close(void)
{
...
	g_free(g_prj->source_patterns);
	g_free(g_prj->header_patterns);
	g_free(g_prj->ignored_dirs_patterns);

here should be g_strfreev. It is corect to g_free them but it causes leak.

Same error in gprj_project_read_properties_tab (gproject-project.c:372) and
maybe somewhere else.

Another leaks:
build_path (gproject-sidebar.c:192)
build_path (gproject-sidebar.c:183)

Caller should free memory after gtk_tree_model_get.

--
Best regards,
Pavel Roschin aka RPG


More information about the Devel mailing list