libgit2/libgit2 — pull request #625 by carlosmn (2012-04-12 18:56:56+00:00)
Title: Plug a few leaks

I'm posting this as a PR because `git_branch_move()` feels kinda wrong. The cleanup needs to be the same whether there was an error or not and it looks like it would be simpler and easier to understand if we did do a `return error`. Comments?