Free allocated memory after writing BMP