mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-23 04:24:35 +02:00
avcodec/libutvideoenc: Fix memleak
Fixes: CID1257657 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c5a07f1f84
commit
1cacecce79
@ -96,8 +96,10 @@ static av_cold int utvideo_encode_init(AVCodecContext *avctx)
|
||||
* since we cannot decode planes separately with it.
|
||||
*/
|
||||
ret = avpicture_get_size(avctx->pix_fmt, avctx->width, avctx->height);
|
||||
if (ret < 0)
|
||||
if (ret < 0) {
|
||||
av_free(info);
|
||||
return ret;
|
||||
}
|
||||
utv->buf_size = ret;
|
||||
|
||||
utv->buffer = (uint8_t *)av_malloc(utv->buf_size);
|
||||
|
Loading…
x
Reference in New Issue
Block a user