From 96f90901bfc981d4d50d88b100900efddc0d628b Mon Sep 17 00:00:00 2001 From: Momtchil Momtchev Date: Fri, 17 Jan 2025 22:04:46 +0100 Subject: [PATCH] fix asan complaining --- src/objstore.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/objstore.cc b/src/objstore.cc index 434e079..b2174b2 100644 --- a/src/objstore.cc +++ b/src/objstore.cc @@ -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; }