From 11705aa1086db0e0497dc5da673402cae2a78d79 Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 12 Jan 2023 19:24:52 -0500 Subject: [PATCH] free newbmp memory Even though the program is exiting on the next line, free the memory that was allocated. That should keep any monitoring tools content. --- win/share/tile2bmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/win/share/tile2bmp.c b/win/share/tile2bmp.c index 64a25dacf..a2d5a580c 100644 --- a/win/share/tile2bmp.c +++ b/win/share/tile2bmp.c @@ -269,6 +269,7 @@ main(int argc, char *argv[]) fwrite(newbmp, bmpsize, 1, fp); fclose(fp); Fprintf(stderr, "Total of %d tiles written to %s.\n", tilecount, bmpname); + free((genericptr_t) newbmp); exit(EXIT_SUCCESS); /*NOTREACHED*/ -- 2.49.0