diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2024-02-27 15:22:58 +0100 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2024-03-08 14:07:59 +0100 |
commit | ed548a183e127c4661cb3faa8e6d34472b55a5c8 (patch) | |
tree | 8c17fef01aca9e199cadd7ef764e7c9a33dbf16f /crypto | |
parent | d8796dbb4200498339c5650b18fe5da5a7df9b2b (diff) |
Fix a memory leak on successful load of CRL
Fixes #23693
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23770)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/x509/by_file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/x509/by_file.c b/crypto/x509/by_file.c index 5073c137a2..85923804ac 100644 --- a/crypto/x509/by_file.c +++ b/crypto/x509/by_file.c @@ -198,6 +198,8 @@ int X509_load_crl_file(X509_LOOKUP *ctx, const char *file, int type) goto err; } count++; + X509_CRL_free(x); + x = NULL; } } else if (type == X509_FILETYPE_ASN1) { x = d2i_X509_CRL_bio(in, NULL); |