aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-09-09 09:32:40 +0200
committerAndreas Schneider <asn@cryptomilk.org>2015-09-09 09:32:40 +0200
commit1254ed1833b4a09409f57ba5e3b45573ecfde89f (patch)
tree3c927d2489825821f08cbcdad5dc4801fcc6cd20 /src
parentf55b10e4edd2d32b1c9b5492b40e3007d00f1c50 (diff)
downloadlibssh-1254ed1833b4a09409f57ba5e3b45573ecfde89f.tar.gz
libssh-1254ed1833b4a09409f57ba5e3b45573ecfde89f.tar.xz
libssh-1254ed1833b4a09409f57ba5e3b45573ecfde89f.zip
pki: Fix a memory leak in pki_import_cert_buffer()
CID #1323517
Diffstat (limited to 'src')
-rw-r--r--src/pki.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pki.c b/src/pki.c
index 910838f6..e0209cd6 100644
--- a/src/pki.c
+++ b/src/pki.c
@@ -859,6 +859,7 @@ static int pki_import_cert_buffer(ssh_buffer buffer,
goto fail;
}
rc = buffer_add_ssh_string(cert, type_s);
+ ssh_string_free(type_s);
if (rc != 0) {
goto fail;
}