GNOME Bugzilla – Bug 670297
Memory leaks found in bluefish-2.2.1-2.fc17 using gcc-with-cpychecker static analyzer
Last modified: 2013-02-05 21:45:02 UTC
Dave Malcolm, the python maintainer for the Fedora Linux distribution has been writing an experimental static analysis tool to detect bugs commonly occurring within C Python extension modules: https://fedorahosted.org/gcc-python-plugin/ http://gcc-python-plugin.readthedocs.org/en/latest/cpychecker.html http://fedoraproject.org/wiki/Features/StaticAnalysisOfPythonRefcounts He ran the latest version of the tool on the Fedora bluefish package (2.2.1), and it reported various errors. You can see a list of errors here, triaged into categories (from most significant to least significant): http://fedorapeople.org/~dmalcolm/gcc-python-plugin/2012-02-16/bluefish-2.2.1-2.fc17/ He manually inspected the results, and the two memory leaks in "Reference leaks" appear to be genuine bugs: zencoding.c:zencoding_run_action:ob_refcnt of '*ptr' is 1 too high (memory leak in error handling) zeneditor-interface.c:get_caret_placeholder:ob_refcnt of '*pcaret_placeholder' is 1 too high (memory leak under normal operation, I think) The other reported errors seem to be unlikely to happen in practice. There may of course be other bugs in the checker tool. Hope this is helpful; let him know (https://bugzilla.redhat.com/show_bug.cgi?id=791186) if you need help reading the logs that the tool generates - he knows that it could use some improvement.
cool stuff :) thanks, fixed all the bugs (I think)