summaryrefslogtreecommitdiff
path: root/gst/mxf
diff options
context:
space:
mode:
authorPonnam Srinivas <p.srinivas@samsung.com>2017-10-04 16:29:52 +0530
committerTim-Philipp Müller <tim@centricular.com>2017-10-06 18:15:38 +0100
commitff0ccc2a111ba48e6fae756b46b7b6018c250e32 (patch)
tree20fd71b11ae3d3d390088f156810a9113c0c1124 /gst/mxf
parentddba9e40f24548d8ec0e98f9684e1a1227ac5ee8 (diff)
downloadgstreamer-plugins-bad-ff0ccc2a111ba48e6fae756b46b7b6018c250e32.tar.gz
mxfdemux: Fix memory leak in error case
https://bugzilla.gnome.org/show_bug.cgi?id=788508
Diffstat (limited to 'gst/mxf')
-rw-r--r--gst/mxf/mxfdemux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst/mxf/mxfdemux.c b/gst/mxf/mxfdemux.c
index 724460a9f..b372f74b2 100644
--- a/gst/mxf/mxfdemux.c
+++ b/gst/mxf/mxfdemux.c
@@ -2261,6 +2261,7 @@ gst_mxf_demux_handle_index_table_segment (GstMXFDemux * demux,
if (!ret) {
GST_ERROR_OBJECT (demux, "Parsing index table segment failed");
+ g_free (segment);
return GST_FLOW_ERROR;
}