From: Richard Levitte Date: Thu, 23 Mar 2000 18:14:21 +0000 (+0000) Subject: Clean up context, even if an error occured. X-Git-Tag: OpenSSL_0_9_5a-beta2~3 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0fa197d8bce3a410e9cb7c54a731d32ffed384ab;p=oweals%2Fopenssl.git Clean up context, even if an error occured. --- 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);