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.
This commit is contained in:
nhmall
2023-01-12 19:24:52 -05:00
parent 0649f5860a
commit 11705aa108

View File

@@ -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*/