diff options
author | Sascha Cunz <sascha@babbelbox.org> | 2013-02-26 18:21:03 +0100 |
---|---|---|
committer | Sascha Cunz <sascha@babbelbox.org> | 2013-02-26 18:21:03 +0100 |
commit | 25e7c9b7a6261877680be535700125ca0e12d6a8 (patch) | |
tree | e570af5c605bbc67a72a44f93036a46354acb64f /src | |
parent | 3e212548f829d012f193eebe6778ea357bd5a095 (diff) | |
download | libgit2-25e7c9b7a6261877680be535700125ca0e12d6a8.tar.gz |
Increment reference counter in git_repository_set_config
This fixes #1365
Diffstat (limited to 'src')
-rw-r--r-- | src/repository.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/repository.c b/src/repository.c index 014b40aff..c28a0882d 100644 --- a/src/repository.c +++ b/src/repository.c @@ -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) |