mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-07 07:52:30 +00:00
Cleanup
This commit is contained in:
parent
67a7136c7b
commit
7621519f73
@ -378,16 +378,14 @@ on_error:
|
|||||||
ssh_stream_free(*stream);
|
ssh_stream_free(*stream);
|
||||||
|
|
||||||
git__free(host);
|
git__free(host);
|
||||||
git__free(port);
|
if (port)
|
||||||
if (user) {
|
git__free(port);
|
||||||
|
if (user)
|
||||||
git__free(user);
|
git__free(user);
|
||||||
}
|
if (pass)
|
||||||
if (pass) {
|
|
||||||
git__free(pass);
|
git__free(pass);
|
||||||
}
|
if (session)
|
||||||
if (session) {
|
|
||||||
libssh2_session_free(session), session = NULL;
|
libssh2_session_free(session), session = NULL;
|
||||||
}
|
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user