From bb85d562b63defe1da5eb3417c1c9aae563644b7 Mon Sep 17 00:00:00 2001 From: Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> Date: Sun, 28 Apr 2024 23:31:57 +0000 Subject: Sun, Apr 28, 2024, 4:31 PM -07:00 --- wk5/pset/speller/dictionary.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'wk5/pset/speller/dictionary.c') diff --git a/wk5/pset/speller/dictionary.c b/wk5/pset/speller/dictionary.c index c25c02f..495383a 100644 --- a/wk5/pset/speller/dictionary.c +++ b/wk5/pset/speller/dictionary.c @@ -116,9 +116,12 @@ bool unload(void) node *current = table(i); while (current != NULL) { + // record position of this node + node *this = current; // record position of next node current = current->next; // free this node + free(this); } } return false; -- cgit v1.2.3