release some memory
authorTony Cook <tony@develop=help.com>
Thu, 1 Nov 2001 13:39:55 +0000 (13:39 +0000)
committerTony Cook <tony@develop=help.com>
Thu, 1 Nov 2001 13:39:55 +0000 (13:39 +0000)
gif.c

diff --git a/gif.c b/gif.c
index 3b29d14add6514db78f8accf3e0e62eaeb4bc86a..cff679f662f9522a7147a562da29a102b5147318 100644 (file)
--- a/gif.c
+++ b/gif.c
@@ -1436,6 +1436,7 @@ i_writegif_low(i_quantize *quant, GifFileType *gf, i_img **imgs, int count,
       myfree(result);
       return 0;
     }
+    myfree(result);
     for (imgn = 1; imgn < count; ++imgn) {
       quant->mc_count = orig_count;
       quant->mc_size = orig_size;