GNOME Bugzilla – Bug 754153
smpte: memory leak
Last modified: 2015-08-28 18:28:02 UTC
If input formats do not match in gst_smpte_collected(), it returns GST_FLOW_ERROR. However, memory allocated for buffers in1 and in2 are not freed.
Created attachment 310070 [details] [review] Fix memory leak Patch attached. Please review.
commit cac239ab89db5c37b59f078c734b2f8e5298c389 Author: Ravi Kiran K N <ravi.kiran@samsung.com> Date: Thu Aug 27 10:28:55 2015 +0530 smpte: Fix memory leak In gst_smpte_collected(), check upfront if input formats are same or not. This avoids allocation of in1 and in2 buffers and subsequent memory leak when input formats do not match. https://bugzilla.gnome.org/show_bug.cgi?id=754153