aboutsummaryrefslogtreecommitdiff
path: root/odb.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-01-15 07:12:40 -0800
committerJunio C Hamano <gitster@pobox.com>2026-01-15 07:12:41 -0800
commit24c43fb10b7d8fb668740f28b107f9ecb73a268d (patch)
treeabcf709ab9449bab6d23903ebd988b9cc59c0a45 /odb.c
parentc0453835ab4d507a48d536f8a6352ef03bcbd464 (diff)
parent3d099686560b848fefe71b7e8edf70d1674b9c73 (diff)
downloadgit-24c43fb10b7d8fb668740f28b107f9ecb73a268d.tar.xz
Merge branch 'ps/odb-misc-fixes'
Miscellaneous fixes on object database layer. * ps/odb-misc-fixes: odb: properly close sources before freeing them builtin/gc: fix condition for whether to write commit graphs
Diffstat (limited to 'odb.c')
-rw-r--r--odb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb.c b/odb.c
index ffd78e1c46..838aa2e53a 100644
--- a/odb.c
+++ b/odb.c
@@ -1117,13 +1117,13 @@ void odb_free(struct object_database *o)
oidmap_clear(&o->replace_map, 1);
pthread_mutex_destroy(&o->replace_mutex);
+ odb_close(o);
odb_free_sources(o);
for (size_t i = 0; i < o->cached_object_nr; i++)
free((char *) o->cached_objects[i].value.buf);
free(o->cached_objects);
- odb_close(o);
packfile_store_free(o->packfiles);
string_list_clear(&o->submodule_source_paths, 0);