diff jpeg_ls.c @ 3773:7364a7e00e86 libavcodec

free memory before return
author kostya
date Wed, 27 Sep 2006 04:37:57 +0000
parents 545342e01885
children c8c591fe26f8
line wrap: on
line diff
--- a/jpeg_ls.c	Wed Sep 27 04:31:39 2006 +0000
+++ b/jpeg_ls.c	Wed Sep 27 04:37:57 2006 +0000
@@ -459,6 +459,8 @@
         }
     } 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;
     }