Don't leak memory in error path.

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@525 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-04-17 14:47:53 +00:00
parent 7e3307cb44
commit 25e80032ba

View File

@@ -831,6 +831,7 @@ int ssh_get_pubkey_hash(SSH_SESSION *session, unsigned char **hash) {
ctx = md5_init();
if (ctx == NULL) {
SAFE_FREE(h);
return -1;
}