diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-10-30 00:51:59 +0000 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2014-11-06 10:44:46 -0500 |
commit | ac4a5e3abd8a022ab32245ad527ffc37eabab8b1 (patch) | |
tree | 800e05bb9345def2a522d02e9d07a0a27f12b103 /libavcodec/pthread_frame.c | |
parent | 5d29efe4b0154ce305d66fed2ac23e5842439256 (diff) | |
download | ffmpeg-ac4a5e3abd8a022ab32245ad527ffc37eabab8b1.tar.gz |
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>
Diffstat (limited to 'libavcodec/pthread_frame.c')
-rw-r--r-- | libavcodec/pthread_frame.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |