Module: libav Branch: master Commit: ac4a5e3abd8a022ab32245ad527ffc37eabab8b1
Author: Luca Barbato <[email protected]> Committer: Vittorio Giovara <[email protected]> Date: Thu Oct 30 00:51:59 2014 +0000 pthreads_frame: Do not leak on failure path CC: [email protected] Bug-Id: CID 1135767 Signed-off-by: Vittorio Giovara <[email protected]> --- libavcodec/pthread_frame.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/pthread_frame.c b/libavcodec/pthread_frame.c index 15bd694..effc9a5 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; } _______________________________________________ libav-commits mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-commits
