summaryrefslogtreecommitdiff
path: root/wk5/pset
diff options
context:
space:
mode:
authorFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 23:31:57 +0000
committerFudgerboy <91767657+Fudgerboy@users.noreply.github.com>2024-04-28 23:31:57 +0000
commitbb85d562b63defe1da5eb3417c1c9aae563644b7 (patch)
treeda40523e1f71856904e5192c63fc3ada95752d68 /wk5/pset
parent7ab9a573550090e6899b3504f07816c49a033fd8 (diff)
Sun, Apr 28, 2024, 4:31 PM -07:00
Diffstat (limited to 'wk5/pset')
-rw-r--r--wk5/pset/speller/dictionary.c3
1 files changed, 3 insertions, 0 deletions
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;