From 0f20b7226957a2fceff37a67b0d9874c7db3a7fc Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 13 Feb 2023 09:36:27 +0000 Subject: [PATCH] Remember to free the actual_board array in Mosaic --- mosaic.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mosaic.c b/mosaic.c index f3a3216..842c211 100644 --- a/mosaic.c +++ b/mosaic.c @@ -925,6 +925,7 @@ static void free_game(game_state *state) sfree(state->cells_contents); state->cells_contents = NULL; if (state->board->references <= 1) { + sfree(state->board->actual_board); sfree(state->board); state->board = NULL; } else {