mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-27 21:56:21 +00:00
Increment reference counter in git_repository_set_config
This fixes #1365
This commit is contained in:
parent
3e212548f8
commit
25e7c9b7a6
@ -553,6 +553,7 @@ void git_repository_set_config(git_repository *repo, git_config *config)
|
||||
|
||||
repo->_config = config;
|
||||
GIT_REFCOUNT_OWN(repo->_config, repo);
|
||||
GIT_REFCOUNT_INC(repo->_config);
|
||||
}
|
||||
|
||||
int git_repository_odb__weakptr(git_odb **out, git_repository *repo)
|
||||
|
Loading…
Reference in New Issue
Block a user