changeset 3773:7364a7e00e86 libavcodec

free memory before return
author kostya
date Wed, 27 Sep 2006 04:37:57 +0000
parents e25069d292fb
children 699bceae338c
files jpeg_ls.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;
     }