diff options
| author | Jonas Kölker <jonaskoelker@yahoo.com> | 2015-09-21 16:21:48 +0200 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2015-10-03 16:58:05 +0100 |
| commit | 87b2758b9c5459eae825d0642eb4c057e8c5c6fd (patch) | |
| tree | 581eca6b7f849d22bf6007879bc7d00567bf013e | |
| parent | 9b1b7e0f3a6858da2bdd3d855a1a9c2801122f30 (diff) | |
| download | puzzles-87b2758b9c5459eae825d0642eb4c057e8c5c6fd.zip puzzles-87b2758b9c5459eae825d0642eb4c057e8c5c6fd.tar.gz puzzles-87b2758b9c5459eae825d0642eb4c057e8c5c6fd.tar.bz2 puzzles-87b2758b9c5459eae825d0642eb4c057e8c5c6fd.tar.xz | |
Fix a memory leak in Range's find_errors.
Only occurred in invalid instances, such as 3x1:1b when you put a
black in the middle square.
| -rw-r--r-- | range.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1451,7 +1451,7 @@ static int find_errors(const game_state *state, int *report) int biggest, canonical; if (!report) { - printf("dfs fail at %d\n", any_white_cell); + sfree(dsf); goto found_error; } |