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.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| attr | Loading commit data... | |
| buf | Loading commit data... | |
| commit | Loading commit data... | |
| config | Loading commit data... | |
| core | Loading commit data... | |
| diff | Loading commit data... | |
| index | Loading commit data... | |
| network | Loading commit data... | |
| notes | Loading commit data... | |
| object | Loading commit data... | |
| odb | Loading commit data... | |
| refs | Loading commit data... | |
| repo | Loading commit data... | |
| revwalk | Loading commit data... | |
| status | Loading commit data... | |
| README.md | Loading commit data... | |
| clar | Loading commit data... | |
| clar_helpers.c | Loading commit data... | |
| clar_libgit2.h | Loading commit data... |