aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mjpegdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-30 00:24:34 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-30 00:25:04 +0100
commited56c021e728fbf4e00143e10be250578aee4a61 (patch)
tree593e5cab3e6255ed5afe63d49bc0322ccd58c800 /libavcodec/mjpegdec.c
parente9e7e685166e024466df8f9f10de12e74b327c82 (diff)
downloadffmpeg-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>
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r--libavcodec/mjpegdec.c1
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;