mirror of
https://codeberg.org/scip/diceware.git
synced 2025-12-17 02:40:57 +01:00
check for nil
This commit is contained in:
@@ -179,5 +179,7 @@ void getwords(char *dictfile, int count) {
|
||||
if (words[i] != NULL)
|
||||
free(words[i]);
|
||||
|
||||
free(words);
|
||||
if (words != NULL) {
|
||||
free(words);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user