summaryrefslogtreecommitdiffstats
path: root/libavcodec/libutvideoenc.cpp
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-11 15:44:05 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-12-11 17:13:49 +0100
commit086e29a01119a0108b26568ec1f66bc66ae9c0f7 (patch)
treedfccb199e67d5d5ea960838e8f4c910d86284181 /libavcodec/libutvideoenc.cpp
parentff0a0b62f3d3cfeeb9a81cc53deb4cde941b2839 (diff)
downloadffmpeg-streaming-086e29a01119a0108b26568ec1f66bc66ae9c0f7.zip
ffmpeg-streaming-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>
Diffstat (limited to 'libavcodec/libutvideoenc.cpp')
-rw-r--r--libavcodec/libutvideoenc.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libutvideoenc.cpp b/libavcodec/libutvideoenc.cpp
index 3298e64..3deb1c7 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);
}
OpenPOWER on IntegriCloud