From bb561ee3b18be69e52b17cedde50eac96ea409da Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 20 Apr 2023 13:35:58 +0100 Subject: Use a dedicated free function to free dsfs. No functional change: currently, this just wraps the previous sfree call. --- range.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'range.c') diff --git a/range.c b/range.c index 8b1b602..855a674 100644 --- a/range.c +++ b/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 */ -- cgit v1.1