Fix a possible memory leak inside Repository#exists?.
Free the stream even in case an error happens during writing in Repository#write.
Add missing error handling in Walker#hide and Walker#push.
Fix a memory leak that would occur every time an exception was raised inside the block given to Rugged::Tag.each.
Cleanup Reference.each.

No idea what I was thinking while implementing this...
Fix a memory leak in Rugged.minimize_oid.
Fix some typos in the minimize_oid docs.
Only test for nil, not a truthy value.
Return GIT_OK instead of 0.
Merge pull request #225 from arthurschreiber/fix_memory_leaks

Fix memory leaks