[FFmpeg-devel] [PATCH]Fix smv memleak
Carl Eugen Hoyos
cehoyos at ag.or.at
Sat Jun 1 00:16:34 CEST 2013
Hi!
fate reports a memleak with smv, attached patch fixes it here.
Please review, Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/smvjpegdec.c b/libavcodec/smvjpegdec.c
index 57116c2..323db90 100644
--- a/libavcodec/smvjpegdec.c
+++ b/libavcodec/smvjpegdec.c
@@ -163,6 +163,7 @@ static av_cold int smvjpeg_decode_end(AVCodecContext *avctx)
MJpegDecodeContext *jpg = &s->jpg;
jpg->picture_ptr = NULL;
+ av_frame_free(&s->picture[0]);
av_frame_free(&s->picture[1]);
ff_codec_close_recursive(s->avctx);
av_freep(&s->avctx);
More information about the ffmpeg-devel
mailing list