Skip to content

Commit

Permalink
fix asan complaining
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Jan 17, 2025
1 parent 91b5469 commit 96f9090
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/objstore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ Value PyObjectWrap::NewCallable(Napi::Env env, PyStrongRef &&py) {
// Skip if Python has been shut down
// Refer to the comment in PyObject::~PyObject about https://github.com/nodejs/node/issues/45088
if (active_environments == 0) {
// We are shutting down so this is only for ASAN
delete fini_fn;
VERBOSE(INIT, "Funcstore erase running after the environment cleanup: %p\n", fini_py);
return;
}
Expand Down

0 comments on commit 96f9090

Please sign in to comment.