summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha.yang@navercorp.com>2018-12-26 20:27:58 +0900
committerTim-Philipp Müller <tim@centricular.com>2019-05-06 23:43:07 +0200
commitd285cd5a6b5beca44baf7c3270122fb8910714f5 (patch)
tree26410d8280ac913479b974f27cb56ae2c5ad1f74
parent1e9a2f584aab6dc761009e73692893772ddadcde (diff)
downloadgstreamer-plugins-good-d285cd5a6b5beca44baf7c3270122fb8910714f5.tar.gz
matroskademux: Don't leak allocated index memory
Don't forget to free returned memory from _search_pos()
-rw-r--r--gst/matroska/matroska-demux.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c
index 106353795..93c2094df 100644
--- a/gst/matroska/matroska-demux.c
+++ b/gst/matroska/matroska-demux.c
@@ -4861,6 +4861,8 @@ gst_matroska_demux_parse_id (GstMatroskaDemux * demux, guint32 id,
GST_DEBUG_OBJECT (demux,
"estimated duration as %" GST_TIME_FORMAT,
GST_TIME_ARGS (demux->common.segment.duration));
+
+ g_free (last);
}
}