GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: call OPENSSL_free after ANS1_STRING_to_UTF8 · nodejs/node@a61e5d8

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • deps/ncrypto
    • ncrypto.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎deps/ncrypto/ncrypto.cc‎

Copy file name to clipboardExpand all lines: deps/ncrypto/ncrypto.cc
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4666,9 +4666,10 @@ std::pair<std::string, std::string> X509Name::Iterator::operator*() const {
46664666
unsigned char* value_str;
46674667
int value_str_size = ASN1_STRING_to_UTF8(&value_str, value);
46684668

4669-
return {
4670-
std::move(name_str),
4671-
std::string(reinterpret_cast<const char*>(value_str), value_str_size)};
4669+
std::string out(reinterpret_cast<const char*>(value_str), value_str_size);
4670+
OPENSSL_free(value_str); // free after copy
4671+
4672+
return {std::move(name_str), std::move(out)};
46724673
}
46734674

46744675
// ============================================================================

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.