GNOME Bugzilla – Bug 685069
Leak in glib-compile-resources
Last modified: 2012-09-30 23:24:46 UTC
Created attachment 225356 [details] [review] Fix leak in glib-compile-resources Commit f7abd3ce130ae3a6da8502c2dce8d773d7514464 introduced a small leak. Same goes for 2.32.4.
Sorry for insisting, but I don’t think your patch fixes the leak. If the g_spawn_check_exit_status calls return TRUE, stderr will never be freed. And the exit status can be 0 while stderr is non-empty. Furthermore, the g_free calls on lines 329 & 387 are useless, since a failed g_spawn_sync is guaranteed by the API to set stderr to NULL.
Thanks for pointing that out; hope its really fixed now.