Commit 7621519f73dfa529dab4d48532559a5e321f6526

Brad Morgan 2013-05-05T14:46:28

Cleanup

diff --git a/src/transports/ssh.c b/src/transports/ssh.c
index 97a285a..9ee13be 100644
--- a/src/transports/ssh.c
+++ b/src/transports/ssh.c
@@ -378,16 +378,14 @@ on_error:
 		ssh_stream_free(*stream);
 	
 	git__free(host);
-	git__free(port);
-	if (user) {
+	if (port)
+		git__free(port);
+	if (user)
 		git__free(user);
-	}
-	if (pass) {
+	if (pass)
 		git__free(pass);
-	}
-	if (session) {
+	if (session)
 		libssh2_session_free(session), session = NULL;
-	}
 
 	return -1;
 }