From: Kostya Shishkov Date: Wed, 27 Sep 2006 04:37:57 +0000 (+0000) Subject: free memory before return X-Git-Tag: v0.5~11753 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=050b60b2ccf90f73f40dd5655dfe7038b43878c0;p=platform%2Fupstream%2Flibav.git free memory before return Originally committed as revision 6351 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/jpeg_ls.c b/libavcodec/jpeg_ls.c index 4b365bb..862a3b4 100644 --- a/libavcodec/jpeg_ls.c +++ b/libavcodec/jpeg_ls.c @@ -459,6 +459,8 @@ static int ls_decode_picture(MJpegDecodeContext *s, int near, int point_transfor } } else if(ilv == 2) { /* sample interleaving */ av_log(s->avctx, AV_LOG_ERROR, "Sample interleaved images are not supported.\n"); + av_free(state); + av_free(zero); return -1; }