diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-07-05 00:39:23 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-07-25 01:06:10 +0300 |
commit | 923d5c489fd4ffd0b9dbfdc6c14f594bd134ab47 (patch) | |
tree | bbd86216db09ddbc126ad76ff9662c8d5a24b6fc /libavcodec/utils.c | |
parent | 73afea3cccbd1f6a8bdb834ace7984440ee783f7 (diff) |
avcodec/utils: fix leak of subtitle_header on error path
Fixes: memleak
Fixes: 15528/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_STL_fuzzer-5735993371525120
Fixes: 15792/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SAMI_fuzzer-5737754232619008
Fixes: 16008/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SSA_fuzzer-5650582821404672
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 66c68d1cf5..a6a646636d 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -1041,6 +1041,7 @@ FF_ENABLE_DEPRECATION_WARNINGS av_dict_free(&tmp); av_freep(&avctx->priv_data); + av_freep(&avctx->subtitle_header); if (avctx->internal) { av_frame_free(&avctx->internal->to_free); av_frame_free(&avctx->internal->compat_decode_frame); |