Missing myfree() in the default path of bmp loading.
authorArnar Mar Hrafnkelsson <addi@cpan.org>
Thu, 1 Nov 2001 15:02:59 +0000 (15:02 +0000)
committerArnar Mar Hrafnkelsson <addi@cpan.org>
Thu, 1 Nov 2001 15:02:59 +0000 (15:02 +0000)
bmp.c

diff --git a/bmp.c b/bmp.c
index 5d99d20..6c9faea 100644 (file)
--- a/bmp.c
+++ b/bmp.c
@@ -861,6 +861,7 @@ read_8bit_bmp(io_glue *ig, int xsize, int ysize, int clr_used,
       i_ppal(im, 0, xsize, y, line);
       y += yinc;
     }
+    myfree(line);
   }
   else if (compression == BI_RLE8) {
     int read_size;