libgit2/libgit2 — pull request #637 by nulltoken (2012-04-23 18:32:43+00:00)
Title: Fix git_repository_set_odb() refcount issue

`git_repository_free()` calls `git_odb_free()` if the owned `odb` is not null.

According to the doc, when setting a new odb through `git_repository_set_odb()` the caller has to take care of releasing the odb by himself.