diff options
-rw-r--r-- | crypto/x509/x509_vfy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index 5520f08e28..f234ec0df6 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -3214,6 +3214,7 @@ static int build_chain(X509_STORE_CTX *ctx) } self_signed = X509_self_signed(x, 0); if (self_signed < 0) { + sk_X509_free(sktmp); ctx->error = X509_V_ERR_UNSPECIFIED; return 0; } |