fix leak: rb_git_repo_write
fix leak: rb_git_repo_write

Perform the free before calling rugged_exception_check so the ODB
doesn't leak if we raise an exception.

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