Free the memory associated with a remote
This also disconnects from the remote, if the connection has not been closed yet (using git_remote_disconnect).
the remote to free