libgit2/libgit2 — pull request #2659 by swisspol (2014-10-26 17:37:19+00:00)
Title: Fixed the most obvious Clang static analyzer warnings

Clang finds hundreds of potential issue and this fixes the most obvious ones and which are guaranteed not to be false positives. I ran the unit tests to make sure there were no regressions.