Unbreak git_remote_ls on a local transport after disconnecting.
Make sure we don't leak memory again.
Merge pull request #1678 from arthurschreiber/unbreak-local-ls-after-disconnect

Unbreak git_remote_ls on a local transport after disconnecting.