1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-08-08 19:02:06 +03:00

pki: Fix a memory leak in pki_import_cert_buffer()

CID #1323517
This commit is contained in:
Andreas Schneider
2015-09-09 09:32:40 +02:00
parent f55b10e4ed
commit 1254ed1833

View File

@@ -859,6 +859,7 @@ static int pki_import_cert_buffer(ssh_buffer buffer,
goto fail; goto fail;
} }
rc = buffer_add_ssh_string(cert, type_s); rc = buffer_add_ssh_string(cert, type_s);
ssh_string_free(type_s);
if (rc != 0) { if (rc != 0) {
goto fail; goto fail;
} }