diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-12-11 03:27:09 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-12-11 03:27:09 +0400 |
commit | 11679e1b90f6e52a3643efb45d06ea5adf65098a (patch) | |
tree | 64cee6e81a6351a5d70b6f3798065b7d9b768f1c /libavcodec/pthread_frame.c | |
parent | 81ed7efbe24ef1b3d98c9e256d2a9332c1797ffd (diff) |
avcodec/pthread_frame: Fix memleak of AVCodecContext on error
Fixes CID1135767
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
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 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; } |