From: Pauli Date: Sun, 26 Apr 2020 22:54:28 +0000 (+1000) Subject: coverity 1462560 Resource leak X-Git-Tag: openssl-3.0.0-alpha2~122 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2a4ad6a5d48de69b7f8b2b07c99d1f6c510c569c;p=oweals%2Fopenssl.git coverity 1462560 Resource leak Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/11651) --- 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; }