diff options
| author | Mistivia <i@mistivia.com> | 2025-12-24 20:06:36 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-12-24 20:06:36 +0800 |
| commit | 59525b2c4a6e2a25c6ba619b42405121d20c2c9a (patch) | |
| tree | 4925d7b75cd10cc7e65e04f3a738a3455971720e /11/part1.c | |
| parent | e21acd14b976f018bf0c4d2ce6fb8a0ad12f160a (diff) | |
fix day 11 leak
Diffstat (limited to '11/part1.c')
| -rw-r--r-- | 11/part1.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -123,5 +123,12 @@ int main() { } long ret = search(Tag_new("you")); printf("%ld\n", ret); + + Tag2TagVectorHashTableIter dagit = Tag2TagVectorHashTable_begin(&dag); + for (; dagit != NULL; dagit = Tag2TagVectorHashTable_next(&dag, dagit)) { + TagVector_free(&dagit->val); + } + Tag2TagVectorHashTable_free(&dag); + Tag2LongHashTable_free(&cache); return 0; }
\ No newline at end of file |
