mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-06 08:47:46 +00:00
Cleanup
This commit is contained in:
parent
67a7136c7b
commit
7621519f73
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user