Commit a31471140fae52fe6480d017d2cfc276f25c9e63

Carlos Martín Nieto 2011-11-22T10:30:30

Set transport to NULL after freeing it

1
2
3
4
5
6
7
8
9
10
11
12
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;
 	}
 }