GNOME Bugzilla – Bug 691509
In arrays may not be cleaned up
Last modified: 2013-01-11 15:45:54 UTC
Sometimes a cleanup function is not set for an array used to pass variable arguments, so the memory is leaked.
Created attachment 233193 [details] [review] Proposed patch. I'm not entirely sure if this patch is correct (I can't tell whether you're intentionally returning there without setting a handler), but make check still passes, and make check.valgrind reports less leaked memory (ie, with the GtkTreeStore tests) and doesn't show any new instances of memory being accessed after being freed.
Comment on attachment 233193 [details] [review] Proposed patch. Well spotted, thanks! This looks correct to me; the cleanup is set further down, but it presumably was just forgotten in that exit path.