Skip to content

Commit ed66c4d

Browse files
committed
Fix the memory leak problem for 211 c implementation.
1 parent d581481 commit ed66c4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: c/0211-design-add-and-search-words-data-structure.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ void wordDictionaryFreeR(WordDictionary* dict) {
6363
int i;
6464
for (i = 0; i < 26; i++) {
6565
if (dict->c[i]) {
66-
return wordDictionaryFreeR(dict->c[i]);
66+
wordDictionaryFreeR(dict->c[i]);
6767
}
6868
}
6969
free(dict);

0 commit comments

Comments
 (0)