libgit2/libgit2 — pull request #2287 by arrbee (2014-04-21 19:00:25+00:00)
Title: Fix some issues from the last Coverity scan

Fix some issues from the last coverity scan. Most of these are cases where an early return could bypass a call to `git_mutex_unlock` (with one change just to make two similar functions actually have parallel construction).