mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
matroska: don't leak read data in demuxer
This commit is contained in:
parent
ba2c101963
commit
9b8f1cbaa2
1 changed files with 2 additions and 0 deletions
|
@ -1322,6 +1322,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux)
|
|||
break;
|
||||
|
||||
if (datalen != 4) {
|
||||
g_free (data);
|
||||
GST_WARNING_OBJECT (demux,
|
||||
"Invalid TrackVideoColourSpace length %" G_GUINT64_FORMAT,
|
||||
datalen);
|
||||
|
@ -1332,6 +1333,7 @@ gst_matroska_demux_add_stream (GstMatroskaDemux * demux)
|
|||
GST_DEBUG_OBJECT (demux,
|
||||
"TrackVideoColourSpace: %" GST_FOURCC_FORMAT,
|
||||
GST_FOURCC_ARGS (videocontext->fourcc));
|
||||
g_free (data);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue