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. --- pearl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pearl.c') diff --git a/pearl.c b/pearl.c index c668641..cf610e1 100644 --- a/pearl.c +++ b/pearl.c @@ -891,7 +891,7 @@ cleanup: } sfree(dsfsize); - sfree(dsf); + dsf_free(dsf); sfree(workspace); assert(ret >= 0); return ret; @@ -1582,7 +1582,7 @@ static bool check_completion(game_state *state, bool mark) for (y = 0; y < h; y++) { if (!dsf_update_completion(state, x, y, R, dsf) || !dsf_update_completion(state, x, y, D, dsf)) { - sfree(dsf); + dsf_free(dsf); return false; } } @@ -1665,7 +1665,7 @@ static bool check_completion(game_state *state, bool mark) * part of a single loop, for which our counter variables * nsilly,nloop,npath are enough. */ sfree(component_state); - sfree(dsf); + dsf_free(dsf); /* * Check that no clues are contradicted. This code is similar to -- cgit v1.1