STYLE
Merge pull request #173 from libgit2/weak-things

Fix memory management
Merge branch 'master' into submodules