libgit2/libgit2 — pull request #1728 by ivoire (2013-07-15 14:32:43+00:00)
Title: Small fixes

Fix some errors found by cppcheck.
Most errors only happen in error code path and will lead to memory leaks.