From 022fbe9a468eb3e815f542159b6c4235e8ab5e09 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Wed, 26 Dec 2018 20:27:58 +0900 Subject: [PATCH] matroskademux: Don't leak allocated index memory Don't forget to free returned memory from _search_pos() --- gst/matroska/matroska-demux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index f75b98b366..611463c100 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -5320,6 +5320,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); } }