Browse Source

pthreads_frame: Do not leak on failure path

CC: libav-stable@libav.org
Bug-Id: CID 1135767
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
tags/n2.5
Luca Barbato Vittorio Giovara 11 years ago
parent
commit
ac4a5e3abd
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavcodec/pthread_frame.c

+ 1
- 0
libavcodec/pthread_frame.c View File

@@ -601,6 +601,7 @@ int ff_frame_thread_init(AVCodecContext *avctx)


p->frame = av_frame_alloc(); p->frame = av_frame_alloc();
if (!p->frame) { if (!p->frame) {
av_freep(&copy);
err = AVERROR(ENOMEM); err = AVERROR(ENOMEM);
goto error; goto error;
} }


Loading…
Cancel
Save