Commit 152efee20b74ea261cf8e05410a110687e17376e

Edward Thomson 2016-08-02T18:43:12

Merge pull request #3865 from libgit2/ethomson/leaks Fix leaks, some warnings and an error