mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
avcodec/pthread_frame: Fix memleak of AVCodecContext on error
Fixes CID1135767 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
81ed7efbe2
commit
11679e1b90
@ -650,6 +650,7 @@ int ff_frame_thread_init(AVCodecContext *avctx)
|
||||
p->frame = av_frame_alloc();
|
||||
if (!p->frame) {
|
||||
err = AVERROR(ENOMEM);
|
||||
av_freep(©);
|
||||
goto error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user