src: use std::unique_ptr for STACK_OF(X509) · nodejs/node@2f17c52 · GitHub
Skip to content

Commit 2f17c52

Browse files
bnoordhuisMylesBorins
authored andcommitted
src: use std::unique_ptr for STACK_OF(X509)
Convert manual memory management of STACK_OF(X509) instances to std::unique_ptr with a custom deleter. Note the tasteful application of std::move() to indicate a function that consumes its argument. PR-URL: #19087 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent f10470c commit 2f17c52

1 file changed

Lines changed: 44 additions & 54 deletions

File tree

src/node_crypto.cc

Lines changed: 44 additions & 54 deletions

0 commit comments

Comments
 (0)