From 11679e1b90f6e52a3643efb45d06ea5adf65098a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 11 Dec 2013 00:27:09 +0100 Subject: [PATCH] avcodec/pthread_frame: Fix memleak of AVCodecContext on error Fixes CID1135767 Signed-off-by: Michael Niedermayer --- libavcodec/pthread_frame.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c index 51a163384b..f7a40ca7ec 100644 --- a/libavcodec/pthread_frame.c +++ b/libavcodec/pthread_frame.c @@ -650,6 +650,7 @@ int ff_frame_thread_init(AVCodecContext *avctx) p->frame = av_frame_alloc(); if (!p->frame) { err = AVERROR(ENOMEM); + av_freep(©); goto error; }