GNOME Bugzilla – Bug 754211
Memory leak in g_file_enumerator_iterate ()
Last modified: 2015-08-28 14:13:55 UTC
Created attachment 310144 [details] [review] g_file_enumerator_iterate patch. g_file_enumerator_iterate takes in an option out_info parameter (as long as out_child is used in its place). However, not supplying out_info makes you vulnerable for a memory leak. Attached is a simple fix -- if the user doesn't want out_info, then free the memory when we're done using it.
Thanks for the patch, looks correct, and I have pushed it. For future patches, could you generate them with `git format-patch`? See: https://wiki.gnome.org/GnomeLove/SubmittingPatches Thanks!
Will do. Thanks!