crypto: fix X509* leak in --use-system-ca · nodejs/node@bbdb10b · GitHub
Skip to content

Commit bbdb10b

Browse files
joyeecheungRafaelGSS
authored andcommitted
crypto: fix X509* leak in --use-system-ca
The X509 structures are never freed. Use ncrypto::X509Pointer to manage it automatically and move the X509* to PEM conversion into a helper to be reused by integration in other systems. PR-URL: #56832 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent a1f9289 commit bbdb10b

1 file changed

Lines changed: 33 additions & 23 deletions

File tree

src/crypto/crypto_context.cc

Lines changed: 33 additions & 23 deletions

0 commit comments

Comments
 (0)