mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-24 17:12:34 +02:00
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>
This commit is contained in:
parent
ff0a0b62f3
commit
086e29a011
@ -100,6 +100,7 @@ static av_cold int utvideo_encode_init(AVCodecContext *avctx)
|
|||||||
|
|
||||||
if (utv->buffer == NULL) {
|
if (utv->buffer == NULL) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Could not allocate output buffer.\n");
|
av_log(avctx, AV_LOG_ERROR, "Could not allocate output buffer.\n");
|
||||||
|
av_free(info);
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user