Skip to content

Commit

Permalink
fix the leak
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Jan 17, 2025
1 parent 0ee9427 commit 8c764d7
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 @@ -120,6 +120,8 @@ Value PyObjectWrap::NewCallable(Napi::Env env, PyStrongRef &&py) {
VERBOSE_PYOBJ(CALL, *py, "Funcstore retrieve");
assert(!it->second->Value().IsEmpty());
js = it->second->Value();
// The caller expects this to be destroyed
py = nullptr;
}

return js;
Expand Down

0 comments on commit 8c764d7

Please sign in to comment.