GNOME Bugzilla – Bug 688363
droute: Memory leak in path cleanup
Last modified: 2012-11-19 16:39:15 UTC
path_free() does not release all the memory allocated to a path. The properties hash table has allocated elements in both the key and value; g_free should be specified as the destructor for both in path_new() g_ptr_array_free(path->introspection, FALSE) was probably being called to avoid a destructor being called on the elements of the array that point to static data. But that method returns an array that must still be g_free()d. Patch attached.
Created attachment 229023 [details] [review] droute: Fix memory leak in path cleanup
Committed as a969192. Thanks for the patch.