Skip to content

Commit

Permalink
node: fix leaking Context handle
Browse files Browse the repository at this point in the history
The call to node::Environment::GetCurrent(Isolate*) makes the call to
v8::Isolate::GetCurrentContext(). Doing so creates a new handle that
bubbled to the v8::SealHandleScope().

PR-URL: #3945
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: James Snell <jasnell@gmail.com>
  • Loading branch information
trevnorris committed Nov 24, 2015
1 parent f21212a commit 5707ef5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3163,6 +3163,7 @@ static void EnableDebug(Environment* env) {

// Called from the main thread.
static void DispatchDebugMessagesAsyncCallback(uv_async_t* handle) {
HandleScope scope(node_isolate);
if (debugger_running == false) {
fprintf(stderr, "Starting debugger agent.\n");

Expand Down

0 comments on commit 5707ef5

Please sign in to comment.