diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-12-11 15:44:05 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-12-11 17:13:49 +0100 |
commit | 086e29a01119a0108b26568ec1f66bc66ae9c0f7 (patch) | |
tree | dfccb199e67d5d5ea960838e8f4c910d86284181 | |
parent | ff0a0b62f3d3cfeeb9a81cc53deb4cde941b2839 (diff) | |
download | ffmpeg-086e29a01119a0108b26568ec1f66bc66ae9c0f7.tar.gz |
avcodec/libutvideoenc: fix leak of info array on error
Fixes CID1257657
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/libutvideoenc.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libutvideoenc.cpp b/libavcodec/libutvideoenc.cpp index 3298e64350..3deb1c7a58 100644 --- a/libavcodec/libutvideoenc.cpp +++ b/libavcodec/libutvideoenc.cpp @@ -100,6 +100,7 @@ static av_cold int utvideo_encode_init(AVCodecContext *avctx) if (utv->buffer == NULL) { av_log(avctx, AV_LOG_ERROR, "Could not allocate output buffer.\n"); + av_free(info); return AVERROR(ENOMEM); } |