GNOME Bugzilla – Bug 735099
gst-validate: fix some minor memory leaks
Last modified: 2014-09-26 08:14:24 UTC
In gst-validate.c : tmp = g_strdup_printf ("get-%s-pad", type); allocates memory to tmp so this should be unref after use, and the other one is *err. I guess one more place for *output_file requires to freed??
Care to make a patch? :)
Created attachment 284067 [details] [review] Few pointers not handled properly
Thanks for the patch, pushed with minor changes: commit eb16061fa9c36d2c5a2dd734c92f1a51bcaa70a1 Author: Anuj Jaiswal <anuj.jaiswal@samsung.com> Date: Wed Aug 20 18:59:26 2014 +0530 gst-validate: fix some minor memory leaks https://bugzilla.gnome.org/show_bug.cgi?id=735099 I don't think that in practice error can actually be non-NULL at the exit at the end, if there's an error we'll bail out earlier, so I've just cleared errors there as well.