Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-12-11 17:44:05 +0300
committerMichael Niedermayer <michaelni@gmx.at>2014-12-11 19:13:49 +0300
commit086e29a01119a0108b26568ec1f66bc66ae9c0f7 (patch)
treedfccb199e67d5d5ea960838e8f4c910d86284181 /libavcodec/libutvideoenc.cpp
parentff0a0b62f3d3cfeeb9a81cc53deb4cde941b2839 (diff)
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 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);
}