check for nil

This commit is contained in:
2025-11-05 21:31:58 +01:00
parent 36dff3796d
commit a5328f2bdd

View File

@@ -179,5 +179,7 @@ void getwords(char *dictfile, int count) {
if (words[i] != NULL)
free(words[i]);
free(words);
if (words != NULL) {
free(words);
}
}