diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-01-30 00:24:34 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-01-30 00:25:04 +0100 |
commit | ed56c021e728fbf4e00143e10be250578aee4a61 (patch) | |
tree | 593e5cab3e6255ed5afe63d49bc0322ccd58c800 | |
parent | e9e7e685166e024466df8f9f10de12e74b327c82 (diff) | |
download | ffmpeg-ed56c021e728fbf4e00143e10be250578aee4a61.tar.gz |
avcodec/mjpegdec Fix potential memleak of stereo3D at the end in case of decoding failure
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/mjpegdec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index 0c30f89602..03ba620940 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -2091,6 +2091,7 @@ av_cold int ff_mjpeg_decode_end(AVCodecContext *avctx) av_frame_unref(s->picture_ptr); av_free(s->buffer); + av_freep(&s->stereo3d); av_freep(&s->ljpeg_buffer); s->ljpeg_buffer_size = 0; |