GNOME Bugzilla – Bug 710796
Minor memory leak fix
Last modified: 2013-10-29 18:00:57 UTC
Patch coming up to fix a small memory leak in an error handling path in the filesystem plugin.
Created attachment 258013 [details] [review] filesystem: Fix a potential memory leak in an error handling path It’s possible to leave the loop in this function before visiting every element in idle_data->entries, thus leaking the data in the remaining elements. Tidy up the deallocation strategy to avoid the leak.
commit b3e134b23566356d4d92ad7d613a3708751356e2 Author: Philip Withnall <philip.withnall@collabora.co.uk> Date: Thu Oct 24 13:30:48 2013 +0100 filesystem: Fix a potential memory leak in an error handling path It is possible to leave the loop in this function before visiting every element in idle_data->entries, thus leaking the data in the remaining elements. Tidy up the deallocation strategy to avoid the leak. https://bugzilla.gnome.org/show_bug.cgi?id=710796 src/filesystem/grl-filesystem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)