Added io_buffer for reading from scalars. Also added test cases. Added
[imager.git] / bmp.c
diff --git a/bmp.c b/bmp.c
index fbc092361dff34349104aaf31e6bedb388cfd6b6..533fdbc91b3de493bd0ebf925f95d2593622ec1b 100644 (file)
--- a/bmp.c
+++ b/bmp.c
@@ -760,8 +760,8 @@ read_4bit_bmp(io_glue *ig, int xsize, int ysize, int clr_used,
           break;
 
         case BMPRLE_ENDOFBMP:
-          free(packed);
-          free(line);
+          myfree(packed);
+          myfree(line);
           return im;
 
         case BMPRLE_DELTA:
@@ -889,7 +889,7 @@ read_8bit_bmp(io_glue *ig, int xsize, int ysize, int clr_used,
           break;
 
         case BMPRLE_ENDOFBMP:
-          free(line);
+          myfree(line);
           return im;
 
         case BMPRLE_DELTA: