From ac4a5e3abd8a022ab32245ad527ffc37eabab8b1 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Thu, 30 Oct 2014 00:51:59 +0000 Subject: [PATCH] pthreads_frame: Do not leak on failure path CC: libav-stable@libav.org Bug-Id: CID 1135767 Signed-off-by: Vittorio Giovara --- libavcodec/pthread_frame.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c index 15bd69465d..effc9a5ac3 100644 --- a/libavcodec/pthread_frame.c +++ b/libavcodec/pthread_frame.c @@ -601,6 +601,7 @@ int ff_frame_thread_init(AVCodecContext *avctx) p->frame = av_frame_alloc(); if (!p->frame) { + av_freep(©); err = AVERROR(ENOMEM); goto error; }