[Geany-devel] Small errors/memory leaks on a few plugins
Hey guys, out of fun, I just run 'cppcheck', a tool for static C code analysis, on the Geany code as well as on the components of the Geany-Plugins project. For Geany, it didn't find any errors: yay! For the Geany-Plugins, the found errors are attached to this mail. There is nothing critical, mostly memory leaks in codenav, geanygdb, geanylatex and pretty-printer which should be easy to fix. I did not checked whether the reported errors are really errors or if there is maybe a false positive. I leave this to the plugin maintainers. Regards, Enrico -- Get my GPG key from http://www.uvena.de/pub.asc [./codenav/src/switch_head_impl.c:144]: (error) Memory leak: lang [./geanygdb/src/gdb-ui-main.c:594]: (error) Memory leak: ldd [./geanygdb/src/gdb-ui-main.c:581]: (error) Mismatching allocation and deallocation: fh [./geanylatex/src/templates.c:47]: (error) Memory leak: template [./pretty-printer/src/PrettyPrinter.c:110]: (error) Common realloc mistake: xmlPrettyPrinted nulled but not freed upon failure [./pretty-printer/src/PrettyPrinter.c:183]: (error) Common realloc mistake: xmlPrettyPrinted nulled but not freed upon failure pgpmk0HrLz1vW.pgp Description: PGP signature ___ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Re: [Geany-devel] Small errors/memory leaks on a few plugins
Am Sonntag, den 06.02.2011, 16:55 +0100 schrieb Enrico Tröger: Hey guys, out of fun, I just run 'cppcheck', a tool for static C code analysis, on the Geany code as well as on the components of the Geany-Plugins project. For Geany, it didn't find any errors: yay! For the Geany-Plugins, the found errors are attached to this mail. There is nothing critical, mostly memory leaks in codenav, geanygdb, geanylatex and pretty-printer which should be easy to fix. I did not checked whether the reported errors are really errors or if there is maybe a false positive. I leave this to the plugin maintainers. For geanygdb the issues should be fixed. Regards, Dominic -- Dominic Hopf dma...@googlemail.com http://dominichopf.de/ Key Fingerprint: A7DF C4FC 07AE 4DDC 5CA0 BD93 AAB0 6019 CA7D 868D signature.asc Description: This is a digitally signed message part ___ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Re: [Geany-devel] Small errors/memory leaks on a few plugins
On Sun, 6 Feb 2011 16:55:07 +0100 Enrico Tröger enrico.troe...@uvena.de wrote: Hey guys, out of fun, I just run 'cppcheck', a tool for static C code analysis, on the Geany code as well as on the components of the Geany-Plugins project. For Geany, it didn't find any errors: yay! For the Geany-Plugins, the found errors are attached to this mail. There is nothing critical, mostly memory leaks in codenav, geanygdb, geanylatex and pretty-printer which should be easy to fix. I did fix it for GeanyLaTeX on trunk of plugin. Will be later merged to geany-plugins. Cheers, Frank -- http://frank.uvena.de/en/ pgp3eqJUhn0qL.pgp Description: PGP signature ___ Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel