This commit is contained in:
Brad Morgan 2013-05-15 12:38:40 -04:00
parent 89ea0e5181
commit 22011b33da

View File

@ -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);
}
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);
if (session)
libssh2_session_free(session), session = NULL;