GNOME Bugzilla – Bug 720306
cppcheck warnings, plus some fixes.
Last modified: 2013-12-13 02:00:53 UTC
Created attachment 264044 [details] cppcheck log. I ran cppcheck over all of the code base (recently pulled from git), enabling everything. After it was ready, I fixed almost all of the memory related warnings, for which I provide a patch. Fixed warnings have been removed from the log.
Created attachment 264045 [details] [review] Patch fixing most memory errors unveiled by cppcheck.
Thanks. I have applied the patch, except as follows: src/cellspan.c: not needed src/commands.c: cppcheck is confused src/dialogs/dialog-doc-metadata.c: patch lacks bracket, but cppcheck is just confused. src/sf-bessel.c: patch lacks braces. plugins/excel/ms-obj.c: I think freeing "anchor" would be wrong. This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.