Skip to content

Commit

Permalink
Fix the memory leak problem for 211 c implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
seinlin committed Jan 29, 2023
1 parent d581481 commit ed66c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c/0211-design-add-and-search-words-data-structure.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void wordDictionaryFreeR(WordDictionary* dict) {
int i;
for (i = 0; i < 26; i++) {
if (dict->c[i]) {
return wordDictionaryFreeR(dict->c[i]);
wordDictionaryFreeR(dict->c[i]);
}
}
free(dict);
Expand Down

0 comments on commit ed66c4d

Please sign in to comment.