]> git.ipfire.org Git - thirdparty/git.git/blobdiff - ref-filter.c
strmap: enable allocations to come from a mem_pool
[thirdparty/git.git] / ref-filter.c
index c62f6b482271e124474aab6984820dcdd2db698c..5e66b8cd765e0397b7ac41369ec121940671ae1b 100644 (file)
@@ -2222,7 +2222,7 @@ void ref_array_clear(struct ref_array *array)
        used_atom_cnt = 0;
 
        if (ref_to_worktree_map.worktrees) {
-               hashmap_free_entries(&(ref_to_worktree_map.map),
+               hashmap_clear_and_free(&(ref_to_worktree_map.map),
                                        struct ref_to_worktree_entry, ent);
                free_worktrees(ref_to_worktree_map.worktrees);
                ref_to_worktree_map.worktrees = NULL;