aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/marktree.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-12-02 07:55:44 +0800
committerGitHub <noreply@github.com>2023-12-02 07:55:44 +0800
commitf6e5366d0077e9f171651f37282cb5c47629d1b6 (patch)
treefb7f29ea11c7c122f3e4404c9473b8fff1dc5eaf /src/nvim/marktree.c
parent983defd284f5941c870d7868cdb60587a98ab348 (diff)
downloadrneovim-f6e5366d0077e9f171651f37282cb5c47629d1b6.tar.gz
rneovim-f6e5366d0077e9f171651f37282cb5c47629d1b6.tar.bz2
rneovim-f6e5366d0077e9f171651f37282cb5c47629d1b6.zip
refactor: free more reachable memory with EXITFREE (#26349)
Discovered using __sanitizer_print_memory_profile().
Diffstat (limited to 'src/nvim/marktree.c')
-rw-r--r--src/nvim/marktree.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/nvim/marktree.c b/src/nvim/marktree.c
index b555b3b4ae..f14da1b605 100644
--- a/src/nvim/marktree.c
+++ b/src/nvim/marktree.c
@@ -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);
}