aboutsummaryrefslogtreecommitdiff
path: root/twiddle.c
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-02-13 11:21:11 +0000
committerBen Harris <bjh21@bjh21.me.uk>2023-02-13 11:21:11 +0000
commitd577aaecab09506988a657fa257c4d0ab85d0cd6 (patch)
treed1c035946ae96e9e0dcef559709c7d7f1d4b0cff /twiddle.c
parent1aa67e7a75ac21d15780d6aaab65a2c0f6f65198 (diff)
downloadpuzzles-d577aaecab09506988a657fa257c4d0ab85d0cd6.zip
puzzles-d577aaecab09506988a657fa257c4d0ab85d0cd6.tar.gz
puzzles-d577aaecab09506988a657fa257c4d0ab85d0cd6.tar.bz2
puzzles-d577aaecab09506988a657fa257c4d0ab85d0cd6.tar.xz
Free new game_state properly in Mosaic's execute_move()
Using sfree() rather than free_game() in the error paths meant that various arrays referenced from the game_state weren't properly freed. Also one error path didn't free the game_state at all.
Diffstat (limited to 'twiddle.c')
0 files changed, 0 insertions, 0 deletions