mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
Fix memory leak.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@526 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -566,6 +566,7 @@ int ssh_userauth_agent_pubkey(SSH_SESSION *session, const char *username,
|
|||||||
string_free(service);
|
string_free(service);
|
||||||
string_free(method);
|
string_free(method);
|
||||||
string_free(algo);
|
string_free(algo);
|
||||||
|
string_free(key);
|
||||||
leave_function();
|
leave_function();
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
@@ -576,6 +577,7 @@ error:
|
|||||||
string_free(service);
|
string_free(service);
|
||||||
string_free(method);
|
string_free(method);
|
||||||
string_free(algo);
|
string_free(algo);
|
||||||
|
string_free(key);
|
||||||
|
|
||||||
leave_function();
|
leave_function();
|
||||||
return rc;
|
return rc;
|
||||||
|
|||||||
Reference in New Issue
Block a user