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
1 changed files with 1 additions and 0 deletions
|
@ -650,6 +650,7 @@ int ff_frame_thread_init(AVCodecContext *avctx)
|
||||||
p->frame = av_frame_alloc();
|
p->frame = av_frame_alloc();
|
||||||
if (!p->frame) {
|
if (!p->frame) {
|
||||||
err = AVERROR(ENOMEM);
|
err = AVERROR(ENOMEM);
|
||||||
|
av_freep(©);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue