fix memory leak
authorLaurent Mazet <mazet@softndesign.org>
Sat, 14 Sep 2024 10:10:50 +0000 (12:10 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Sat, 14 Sep 2024 10:10:50 +0000 (12:10 +0200)
image.c

diff --git a/image.c b/image.c
index 49cb9fb36e3687aee153bd33d78343d79f46309f..99b6a24953e15391afc9ac7ee78b2d6c4fa7b6f4 100644 (file)
--- a/image.c
+++ b/image.c
@@ -21,6 +21,7 @@ void freeimage (image_t *image)
         free (image->green);
         free (image->blue);
     }
+    free (image);
 }
 
 int contain (char *str, char c)