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:
Andreas Schneider
2009-04-17 14:50:05 +00:00
parent 25e80032ba
commit bf4d29b963

View File

@@ -566,6 +566,7 @@ int ssh_userauth_agent_pubkey(SSH_SESSION *session, const char *username,
string_free(service);
string_free(method);
string_free(algo);
string_free(key);
leave_function();
return rc;
@@ -576,6 +577,7 @@ error:
string_free(service);
string_free(method);
string_free(algo);
string_free(key);
leave_function();
return rc;