Skip to content

Commit

Permalink
Merge pull request hpcc-systems#19048 from richardkchapman/HPCC-32538
Browse files Browse the repository at this point in the history
HPCC-32538 Memory leak in securesocket.cpp

Reviewed-by: Gavin Halliday <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday committed Aug 30, 2024
2 parents ed4fdd5 + 41ad80c commit 0ef5429
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 0ef5429

Please sign in to comment.