GNOME Bugzilla – Bug 753862
devtools: Fix memory leaks when context parse fails.
Last modified: 2015-11-18 00:36:20 UTC
In all places where g_option_context_parse is being used, when it fails, the context and error variables are not getting freed, which will result in memory leaks. Along with that replacing g_error_free with g_clear_error in these files, which is a better way to free error, as it checks if the variable is Non-NULL and then sets it to NULL on freeing.
Created attachment 309681 [details] [review] validate: fix memory leaks during context parse failures.
Created attachment 309682 [details] [review] codecanalyzer: fix memory leaks during context parse failures.
ping :)
Review of attachment 309681 [details] [review]: OK
Pushed the other one too: commit 581b0cfced568e37c8ced0f3e28311f6579ea4e8 Author: Vineeth T M <vineeth.tm@samsung.com> Date: Thu Aug 20 16:54:14 2015 +0900 codecanalyzer: Fix memory leaks when context parse fails When g_option_context_parse fails, context and error variables are not getting free'd which results in memory leaks being reported. https://bugzilla.gnome.org/show_bug.cgi?id=753862