diff options
| author | Vicent Martà <vicent@github.com> | 2013-02-26 09:29:27 -0800 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2013-02-26 09:29:27 -0800 |
| commit | 69903777862bfdb03855ec13b0b63d65e0ed5410 (patch) | |
| tree | e570af5c605bbc67a72a44f93036a46354acb64f | |
| parent | 3e212548f829d012f193eebe6778ea357bd5a095 (diff) | |
| parent | 25e7c9b7a6261877680be535700125ca0e12d6a8 (diff) | |
| download | libgit2-69903777862bfdb03855ec13b0b63d65e0ed5410.tar.gz | |
Merge pull request #1368 from scunz/inc_ref
Increment reference counter in git_repository_set_config
| -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) |
