coverity 1462560 Resource leak

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11651)
This commit is contained in:
Pauli 2020-04-27 08:54:28 +10:00
parent 576bcdb5bd
commit 2a4ad6a5d4
1 changed files with 1 additions and 0 deletions

View File

@ -3258,6 +3258,7 @@ static int build_chain(X509_STORE_CTX *ctx)
if (ss < 0) { if (ss < 0) {
X509err(X509_F_BUILD_CHAIN, ERR_R_INTERNAL_ERROR); X509err(X509_F_BUILD_CHAIN, ERR_R_INTERNAL_ERROR);
ctx->error = X509_V_ERR_UNSPECIFIED; ctx->error = X509_V_ERR_UNSPECIFIED;
sk_X509_free(sktmp);
return 0; return 0;
} }