GNOME Bugzilla – Bug 740348
Fixing memory leaks detected by cppcheck
Last modified: 2014-11-19 19:55:13 UTC
I found a few memory leaks in eog with cppcheck. Attached patch fixes some of them.
Created attachment 290956 [details] [review] Patch to fix a few memory leaks
Second attach contains cppcheck report in txt (errors.log), xml (errors.xml), and html (html directory) forms. Report created after applying my patch.
Created attachment 290957 [details] Cppcheck report
Thanks. I also fixed two of the other leaks that were listed in your report. The one in EogExifUtils is only theoretical as the second condition doesn't actually fail in that case. commit a9be9741fce0b9be0e0d4f9051c576e449b5a1b0 Author: Felix Riemann <> Date: Wed Nov 19 20:31:25 2014 +0100 Fix two more memory leaks Taken from a Cppcheck report provided by Boris Egorov. https://bugzilla.gnome.org/show_bug.cgi?id=740348 commit 64cc76ccbfd7e5c59d007bfc1bac1c1365c501d7 Author: Boris Egorov <> Date: Wed Nov 19 10:26:22 2014 +0600 Fix a few memory leaks Detected by Cppcheck Signed-off-by: Boris Egorov <> --- This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.