matroskademux: Don't leak allocated index memory
authorSeungha Yang <seungha.yang@navercorp.com>
Wed, 26 Dec 2018 11:27:58 +0000 (20:27 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Wed, 26 Dec 2018 11:31:10 +0000 (20:31 +0900)
Don't forget to free returned memory from _search_pos()

gst/matroska/matroska-demux.c

index f75b98b..611463c 100644 (file)
@@ -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);
               }
             }