shithub: puzzles

Download patch

ref: 0f20b7226957a2fceff37a67b0d9874c7db3a7fc
parent: bb31efdbc91495a4385ca0afffa4c8bb8f564d7b
author: Ben Harris <[email protected]>
date: Mon Feb 13 04:36:27 EST 2023

Remember to free the actual_board array in Mosaic

--- a/mosaic.c
+++ b/mosaic.c
@@ -925,6 +925,7 @@
     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 {