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;
}
rc = buffer_add_ssh_string(cert, type_s);
ssh_string_free(type_s);
if (rc != 0) {
goto fail;
}