Browse Source

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>
tags/n2.6
Michael Niedermayer 10 years ago
parent
commit
086e29a011
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/libutvideoenc.cpp

+ 1
- 0
libavcodec/libutvideoenc.cpp View File

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



Loading…
Cancel
Save