diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-09-27 04:37:57 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-09-27 04:37:57 +0000 |
commit | 050b60b2ccf90f73f40dd5655dfe7038b43878c0 (patch) | |
tree | ad19a8c2ed9d0e3a4b064f228173294f79e2b7ac | |
parent | 1dbb339db330481193325367456d57461e3b146e (diff) | |
download | ffmpeg-050b60b2ccf90f73f40dd5655dfe7038b43878c0.tar.gz |
free memory before return
Originally committed as revision 6351 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/jpeg_ls.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/jpeg_ls.c b/libavcodec/jpeg_ls.c index 4b365bb4ad..862a3b4229 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; } |