From 2a4ad6a5d48de69b7f8b2b07c99d1f6c510c569c Mon Sep 17 00:00:00 2001 From: Pauli Date: Mon, 27 Apr 2020 08:54:28 +1000 Subject: [PATCH] coverity 1462560 Resource leak Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/11651) --- crypto/x509/x509_vfy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index e5fbd2afd1..fb0469183f 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -3258,6 +3258,7 @@ static int build_chain(X509_STORE_CTX *ctx) if (ss < 0) { X509err(X509_F_BUILD_CHAIN, ERR_R_INTERNAL_ERROR); ctx->error = X509_V_ERR_UNSPECIFIED; + sk_X509_free(sktmp); return 0; } -- 2.25.1