From 0fa197d8bce3a410e9cb7c54a731d32ffed384ab Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Thu, 23 Mar 2000 18:14:21 +0000 Subject: [PATCH] Clean up context, even if an error occured. --- crypto/pkcs7/pk7_doit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/pkcs7/pk7_doit.c b/crypto/pkcs7/pk7_doit.c index 80ac5e34b4..4ab24a86f5 100644 --- a/crypto/pkcs7/pk7_doit.c +++ b/crypto/pkcs7/pk7_doit.c @@ -699,6 +699,7 @@ int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx, BIO *bio, if (i <= 0) { PKCS7err(PKCS7_F_PKCS7_DATAVERIFY,ERR_R_X509_LIB); + X509_STORE_CTX_cleanup(ctx); goto err; } X509_STORE_CTX_cleanup(ctx); -- 2.25.1