diff options
| author | Simon Tatham <anakin@pobox.com> | 2023-04-20 13:35:58 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2023-04-20 17:21:12 +0100 |
| commit | bb561ee3b18be69e52b17cedde50eac96ea409da (patch) | |
| tree | 43b58f8e05550dfad4936e63cccb7ebe9a7c7ed5 /pearl.c | |
| parent | 16f997d34c7b435d3fcf5774c700579e188b017f (diff) | |
| download | puzzles-bb561ee3b18be69e52b17cedde50eac96ea409da.zip puzzles-bb561ee3b18be69e52b17cedde50eac96ea409da.tar.gz puzzles-bb561ee3b18be69e52b17cedde50eac96ea409da.tar.bz2 puzzles-bb561ee3b18be69e52b17cedde50eac96ea409da.tar.xz | |
Use a dedicated free function to free dsfs.
No functional change: currently, this just wraps the previous sfree
call.
Diffstat (limited to 'pearl.c')
| -rw-r--r-- | pearl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |