summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/repository.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/repository.c b/src/repository.c
index 41a176a81..c8b6ae4f2 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -549,6 +549,7 @@ void git_repository_set_odb(git_repository *repo, git_odb *odb)
repo->_odb = odb;
GIT_REFCOUNT_OWN(repo->_odb, repo);
+ GIT_REFCOUNT_INC(odb);
}
int git_repository_index__weakptr(git_index **out, git_repository *repo)