Free the git object and better length handling
Free the git object and better length handling

Acidburn0zzz/rugged,libgit2/rugged,tpickett66/rugged,tpickett66/rugged,tpickett66/rugged,saraid/rugged,Acidburn0zzz/rugged,libgit2/rugged,saraid/rugged,libgit2/rugged,Acidburn0zzz/rugged,saraid/rugged