refactor: free more reachable memory with EXITFREE (#26349)

Discovered using __sanitizer_print_memory_profile().
This commit is contained in:
zeertzjq
2023-12-02 07:55:44 +08:00
committed by GitHub
parent 983defd284
commit f6e5366d00
16 changed files with 151 additions and 18 deletions

View File

@@ -1117,7 +1117,6 @@ void marktree_clear(MarkTree *b)
b->root = NULL;
}
map_destroy(uint64_t, b->id2node);
*b->id2node = (PMap(uint64_t)) MAP_INIT;
b->n_keys = 0;
assert(b->n_nodes == 0);
}