Skip to content

Commit 1349c24

Browse files
authored
Merge pull request #2172 from seinlin/211-fix
Fix the memory leak problem for 211 c implementation.
2 parents c24a474 + ed66c4d commit 1349c24

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)