[Geany-Devel] GProject memory leak

Jiří Techet techet at xxxxx
Wed May 14 14:06:30 UTC 2014


Hi Pavel,

thanks for noticing, I've just pushed the suggested fixes to the
plugins repository.

Cheers,
Jiri

On Fri, May 9, 2014 at 10:07 PM, Pavel Roschin <roshin at scriptumplus.ru> wrote:
> 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