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 — n-api: fix memory leak in napi_async_destroy() · nodejs/node@a744535

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_api.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_api.cc‎

Copy file name to clipboardExpand all lines: src/node_api.cc
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2770,6 +2770,8 @@ napi_status napi_async_destroy(napi_env env,
27702770
reinterpret_cast<node::async_context*>(async_context);
27712771
node::EmitAsyncDestroy(isolate, *node_async_context);
27722772

2773+
delete node_async_context;
2774+
27732775
return napi_clear_last_error(env);
27742776
}
27752777

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.