summaryrefslogtreecommitdiff
path: root/word.c
diff options
context:
space:
mode:
Diffstat (limited to 'word.c')
-rw-r--r--word.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/word.c b/word.c
index bf1fada..1e8d56a 100644
--- a/word.c
+++ b/word.c
@@ -37,6 +37,8 @@ struct word_t *word_get(char *name) {
void word_free() {
struct word_t *word;
for(int i = 0; i < WORDS_MAX; i++) {
+ if(words[i].name)
+ free(words[i].name);
word = words[i].next;
while(word) {
struct word_t *temp = word->next;