1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-27 13:21:11 +03:00

wrapper: Fix memory leak when freeing server_pubkey

Thanks to John McVann.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2018-05-14 08:17:08 +02:00
parent f1ff9ae00c
commit 8457580f61

View File

@@ -148,7 +148,7 @@ void crypto_free(struct ssh_crypto_struct *crypto){
return;
}
SAFE_FREE(crypto->server_pubkey);
ssh_key_free(crypto->server_pubkey);
cipher_free(crypto->in_cipher);
cipher_free(crypto->out_cipher);