summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2017-05-07 11:29:08 +0800
committerSteven Liu <lq@chinaffmpeg.org>2017-05-07 11:29:08 +0800
commitcc25a887c5467be5c7b004665047a32d36c9cf42 (patch)
tree28f9ade8f68c8701e3cbe225197cc14aab8bd70e
parent4a51aa7ddaeb6e31e3918231bda31515d988f62c (diff)
downloadffmpeg-streaming-cc25a887c5467be5c7b004665047a32d36c9cf42.zip
ffmpeg-streaming-cc25a887c5467be5c7b004665047a32d36c9cf42.tar.gz
avformat/matroskadec: fix resource leak
Fixes Coverity CID: 1405453 Reviewed-by: wm4 <nfxjfg@googlemail.com> Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
-rw-r--r--libavformat/matroskadec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c
index 9e2c9bd..94a56eb 100644
--- a/libavformat/matroskadec.c
+++ b/libavformat/matroskadec.c
@@ -3893,6 +3893,7 @@ static int webm_dash_manifest_cues(AVFormatContext *s, int64_t init_range)
"%" PRId64, s->streams[0]->index_entries[i].timestamp);
if (ret <= 0 || (ret == 20 && i == s->streams[0]->nb_index_entries - 1)) {
av_log(s, AV_LOG_ERROR, "timestamp too long.\n");
+ av_free(buf);
return AVERROR_INVALIDDATA;
}
end += ret;
OpenPOWER on IntegriCloud