Commit 11679e1b authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/pthread_frame: Fix memleak of AVCodecContext on error

Fixes CID1135767
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 81ed7efb
......@@ -650,6 +650,7 @@ int ff_frame_thread_init(AVCodecContext *avctx)
p->frame = av_frame_alloc();
if (!p->frame) {
err = AVERROR(ENOMEM);
av_freep(&copy);
goto error;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment