[SCM] libav/experimental: free memory before return

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:51:06 UTC 2013


The following commit has been merged in the experimental branch:
commit 050b60b2ccf90f73f40dd5655dfe7038b43878c0
Author: Kostya Shishkov <kostya.shishkov at gmail.com>
Date:   Wed Sep 27 04:37:57 2006 +0000

    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;
     }
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list