Browse Source

avcodec/pthread_frame: Fix memleak of AVCodecContext on error

Fixes CID1135767
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.2-rc1
Michael Niedermayer 12 years ago
parent
commit
11679e1b90
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/pthread_frame.c

+ 1
- 0
libavcodec/pthread_frame.c View File

@@ -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;
}



Loading…
Cancel
Save