Skip to content

Commit e04b38c

Browse files
committed
Fix memory leak
1 parent 03624ba commit e04b38c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

module.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ static void ExecutionInterrupted(Isolate *isolate, void *data) {
187187
auto state = GetThreadState(isolate, std::move(*args->store));
188188

189189
args->promise->set_value({frames, state});
190+
191+
delete args;
190192
}
191193

192194
// Function to capture the stack trace of a single isolate

0 commit comments

Comments
 (0)