Set transport to NULL after freeing it
diff --git a/src/remote.c b/src/remote.c
index 12af545..cda1a15 100644
--- a/src/remote.c
+++ b/src/remote.c
@@ -295,6 +295,7 @@ void git_remote_disconnect(git_remote *remote)
remote->transport->close(remote->transport);
remote->transport->free(remote->transport);
+ remote->transport = NULL;
}
}