GNOME Bugzilla – Bug 788508
mxfdemux: Fix Memory leak in error case
Last modified: 2017-10-06 17:16:50 UTC
Created attachment 360905 [details] patch file attached Hi, In gst_mxf_demux_handle_index_table_segment () , memory leak in error case. code: segment = g_new0 (MXFIndexTableSegment, 1); gst_buffer_map (buffer, &map, GST_MAP_READ); ret = mxf_index_table_segment_parse (key, segment, map.data, map.size); gst_buffer_unmap (buffer, &map); if (!ret) { GST_ERROR_OBJECT (demux, "Parsing index table segment failed"); return GST_FLOW_ERROR; } sol: g_free (segment); added in error case. Patch added . Please review and share feedback.
Created attachment 360906 [details] [review] patch file attached
patch attached.please review and share feedback
Pushed, thanks for the patch! commit ff0ccc2a111ba48e6fae756b46b7b6018c250e32 (HEAD -> master) Author: Ponnam Srinivas <p.srinivas@samsung.com> Date: Wed Oct 4 16:29:52 2017 +0530 mxfdemux: Fix memory leak in error case https://bugzilla.gnome.org/show_bug.cgi?id=788508