[FFmpeg-cvslog] avcodec/libutvideoenc: fix leak of info array on error

Michael Niedermayer git at videolan.org
Thu Dec 11 18:25:10 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Dec 11 15:44:05 2014 +0100| [086e29a01119a0108b26568ec1f66bc66ae9c0f7] | committer: Michael Niedermayer

avcodec/libutvideoenc: fix leak of info array on error

Fixes CID1257657

Reviewed-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=086e29a01119a0108b26568ec1f66bc66ae9c0f7
---

 libavcodec/libutvideoenc.cpp |    1 +
 1 file changed, 1 insertion(+)

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);
     }
 



More information about the ffmpeg-cvslog mailing list