[Geany-Devel] bug hunting with cppcheck
Colomban Wendling
lists.ban at xxxxx
Sun Nov 3 00:58:13 UTC 2013
Le 03/11/2013 01:19, Pavel Roschin a écrit :
> Updated new config:
>
> https://gist.github.com/scriptum/7282198
>
> new few leaks (g_return*, again!):
>
> ../geany/src/utils.c:868: error: Memory leak: buffer
> ../geany/src/utils.c:1811: error: Memory leak: str
>
> ../geany/tagmanager/ctags/sort.c:215: error: Mismatching allocation and
> deallocation: table
> Here should be g_free, not just free.
All three fixed, and the elements of `table` also were deallocated using
the wrong function.
Thanks,
Colomban
More information about the Devel
mailing list