[FFmpeg-cvslog] avcodec/ mjpegdec Fix potential memleak of stereo3D at the end in case of decoding failure

Michael Niedermayer git at videolan.org
Thu Jan 30 00:51:37 CET 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jan 30 00:24:34 2014 +0100| [ed56c021e728fbf4e00143e10be250578aee4a61] | committer: Michael Niedermayer

avcodec/mjpegdec Fix potential memleak of stereo3D at the end in case of decoding failure

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ed56c021e728fbf4e00143e10be250578aee4a61
---

 libavcodec/mjpegdec.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c
index 0c30f89..03ba620 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;
 



More information about the ffmpeg-cvslog mailing list