Skip to content

Commit

Permalink
HPCC-32538 Memory leak in securesocket.cpp
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Chapman <[email protected]>
  • Loading branch information
richardkchapman committed Aug 28, 2024
1 parent aa2925c commit 41ad80c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions system/security/securesocket/securesocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2023,6 +2023,7 @@ class CRsaCertificate : implements ICertificate, public CInterface
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks(bio_err);
#endif
BIO_free(bio_err);
BIO_free(pmem);
BIO_free(reqmem);
EVP_PKEY_free (pkey);
Expand Down Expand Up @@ -2191,6 +2192,7 @@ SECURESOCKET_API int signCertificate(const char* csr, const char* ca_certificate
#ifndef OPENSSL_NO_CRYPTO_MDEBUG
CRYPTO_mem_leaks(bio_err);
#endif
BIO_free(bio_err);
BIO_free(csrmem);
BIO_free(cacertmem);
BIO_free(cmem);
Expand Down

0 comments on commit 41ad80c

Please sign in to comment.