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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user