GNOME Bugzilla – Bug 691820
Caller-allocated GValues and their memory are leaked
Last modified: 2013-01-17 06:58:19 UTC
When a GValue is returned in space that the caller allocates, pyg_value_as_pyobject gets called and takes the pointer, string, etc. from the value, but the space allocated for the value is not freed. Also, if the value held a string, then the original string is leaked.
Created attachment 233557 [details] [review] Patch. Patch to always call _cleanup_caller_allocates and add a parameter to indicate whether the argument was processed. Deallocate the memory where it should be done (ie, for GValues).
Very nice, thank you!