[Bug 788508] New: mxfdemux: Fix Memory leak in error case
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Wed Oct 4 11:26:38 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=788508
Bug ID: 788508
Summary: mxfdemux: Fix Memory leak in error case
Classification: Platform
Product: GStreamer
Version: 1.13.x
OS: All
Status: NEW
Severity: normal
Priority: Normal
Component: gst-plugins-bad
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: p.srinivas at samsung.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 360905
--> https://bugzilla.gnome.org/attachment.cgi?id=360905&action=edit
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.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list