aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-16 09:15:29 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-16 09:15:29 +0200
commitc5028e76ad2fa5ba6cd8a6fcd9761458ef73dc93 (patch)
tree2240fef67632ab0be3192acbc6e80ae4391b0b2d
parentdf29df6e3519ca0e40ea4fa7e148eed3c49f9841 (diff)
downloadlibssh-c5028e76ad2fa5ba6cd8a6fcd9761458ef73dc93.tar.gz
libssh-c5028e76ad2fa5ba6cd8a6fcd9761458ef73dc93.tar.xz
libssh-c5028e76ad2fa5ba6cd8a6fcd9761458ef73dc93.zip
pki: Fix memleak in pki_import_pubkey_buffer().
-rw-r--r--src/pki.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pki.c b/src/pki.c
index 6199ab5..1a0f4d8 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -443,6 +443,8 @@ static int pki_import_pubkey_buffer(ssh_session session,
ssh_string_free(q);
ssh_string_burn(g);
ssh_string_free(g);
+ ssh_string_burn(pubkey);
+ ssh_string_free(pubkey);
if (rc == SSH_ERROR) {
goto fail;
}