summaryrefslogtreecommitdiff
path: root/tests-clar/diff/patch.c
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-04-14 14:13:17 +0200
committernulltoken <emeric.fermas@gmail.com>2012-04-14 15:05:38 +0200
commitc1aefb35dd39efa0045a9925520b4715f82433e3 (patch)
treeb609115ab234252e16fff73a2b15ab84964e7d89 /tests-clar/diff/patch.c
parentfdd1149c292727439c6616743ad044df3c74527c (diff)
downloadlibgit2-c1aefb35dd39efa0045a9925520b4715f82433e3.tar.gz
Fix git_repository_set_index() refcount issue
git_repository_free() calls git_index_free() if the owned index is not null. According to the doc, when setting a new index through git_repository_set_index() the caller has still to take care of releasing the index by itself. In order to cope with this, this fix makes sure the index refcount is incremented when a new repository is being plugged a new index.
Diffstat (limited to 'tests-clar/diff/patch.c')
0 files changed, 0 insertions, 0 deletions