From: nhmall Date: Fri, 13 Jan 2023 00:24:52 +0000 (-0500) Subject: free newbmp memory X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=11705aa1086db0e0497dc5da673402cae2a78d79;p=nethack 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. --- 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*/