mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 09:54:25 +09:00
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:
@@ -831,6 +831,7 @@ int ssh_get_pubkey_hash(SSH_SESSION *session, unsigned char **hash) {
|
|||||||
|
|
||||||
ctx = md5_init();
|
ctx = md5_init();
|
||||||
if (ctx == NULL) {
|
if (ctx == NULL) {
|
||||||
|
SAFE_FREE(h);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user