GNOME Bugzilla – Bug 744326
memory leaks at logging
Last modified: 2015-02-11 15:26:57 UTC
The function gst_caps_to_string () return a new allocated string that should be free. Some logging instructions use that function without freeing the allocated string. This patch replaces the function with GST_PTR_FORMAT magic, and in the case of the tests, the free() is added.
Did you use git bz and it didn't append the patch? (I've ever git bz needs an update to work with the new bugzilla)
(In reply to Lionel Landwerlin from comment #1) > Did you use git bz and it didn't append the patch? (I've ever git bz needs > an update to work with the new bugzilla) Yep. I tried to hacked it but it didn't work. Let me upload the patch.
Created attachment 296593 [details] [review] fix for small memleaks at logging
Review of attachment 296593 [details] [review]: Thanks, please commit to the 3.0 branch.
(In reply to Lionel Landwerlin from comment #4) > Review of attachment 296593 [details] [review] [review]: > > Thanks, please commit to the 3.0 branch. Done commit 741781fbb3e533e21084eecf3cb7d7035ce6b3d1 Author: Víctor Manuel Jáquez Leal <vjaquez@igalia.com> Date: Wed Feb 11 13:42:54 2015 +0100 memory leaks at logging The function gst_caps_to_string () return a new allocated string that should be free. Some logging instructions use that function without freeing the allocated string. This patch replaces the function with GST_PTR_FORMAT magic, and in the case of the tests, the free() is added. https://bugzilla.gnome.org/show_bug.cgi?id=744326