free memory before return
authorKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 27 Sep 2006 04:37:57 +0000 (04:37 +0000)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Wed, 27 Sep 2006 04:37:57 +0000 (04:37 +0000)
Originally committed as revision 6351 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/jpeg_ls.c

index 4b365bb4adb5778f45a9faab6bacbcb857271927..862a3b42292b7adeab6168732062be7b4a6df9c4 100644 (file)
@@ -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;
     }