Commit 22011b33daf1a722ae1f522b32e188dccb21ac42

Brad Morgan 2013-05-15T12:38:40

Cleanup

diff --git a/src/transports/ssh.c b/src/transports/ssh.c
index f11b5fb..f04adf5 100644
--- a/src/transports/ssh.c
+++ b/src/transports/ssh.c
@@ -375,12 +375,8 @@ static int _git_ssh_setup_conn(
 	t->current_stream = s;
 	git__free(host);
 	git__free(port);
-	if (user) {
-		git__free(user);
-	}
-	if (pass) {
-		git__free(pass);
-	}
+	git__free(user);
+	git__free(pass);
 
 	return 0;
 	
@@ -389,12 +385,10 @@ on_error:
 		ssh_stream_free(*stream);
 	
 	git__free(host);
-	if (port)
-		git__free(port);
-	if (user)
-		git__free(user);
-	if (pass)
-		git__free(pass);
+	git__free(port);
+	git__free(user);
+	git__free(pass);
+
 	if (session)
 		libssh2_session_free(session), session = NULL;