mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 15:41:30 -07:00
Use a dedicated free function to free dsfs.
No functional change: currently, this just wraps the previous sfree call.
This commit is contained in:
4
range.c
4
range.c
@ -1492,7 +1492,7 @@ static bool find_errors(const game_state *state, bool *report)
|
||||
int biggest, canonical;
|
||||
|
||||
if (!report) {
|
||||
sfree(dsf);
|
||||
dsf_free(dsf);
|
||||
goto found_error;
|
||||
}
|
||||
|
||||
@ -1517,7 +1517,7 @@ static bool find_errors(const game_state *state, bool *report)
|
||||
if (state->grid[i] != BLACK && dsf_canonify(dsf, i) != canonical)
|
||||
report[i] = true;
|
||||
}
|
||||
sfree(dsf);
|
||||
dsf_free(dsf);
|
||||
|
||||
free_game(dup);
|
||||
return false; /* if report != NULL, this is ignored */
|
||||
|
Reference in New Issue
Block a user