aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-05-14 08:17:08 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-05-14 08:17:08 +0200
commit8457580f61a641c827d2927a0ccd16b103e84e09 (patch)
tree810774a76d92cbdda81d3c0089efaa4639f94d57
parentf1ff9ae00cdb70ee7be46d2387324043737b3218 (diff)
downloadlibssh-8457580f61a641c827d2927a0ccd16b103e84e09.tar.gz
libssh-8457580f61a641c827d2927a0ccd16b103e84e09.tar.xz
libssh-8457580f61a641c827d2927a0ccd16b103e84e09.zip
wrapper: Fix memory leak when freeing server_pubkey
Thanks to John McVann. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wrapper.c b/src/wrapper.c
index 7ecb3101..16f93274 100644
--- a/src/wrapper.c
+++ b/src/wrapper.c
@@ -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);