Skip to content

Commit

Permalink
tools: fix mksnapshot blob wrong freeing operator
Browse files Browse the repository at this point in the history
PR-URL: #29384
Reviewed-By: Ben Noordhuis <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
  • Loading branch information
devnexen authored and BridgeAR committed Sep 4, 2019
1 parent 2489682 commit 3f68be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/snapshot/snapshot_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ std::string SnapshotBuilder::Generate(
// creator is still alive.
main_instance->Dispose();
result = FormatBlob(&blob, isolate_data_indexes);
delete blob.data;
delete[] blob.data;
}

per_process::v8_platform.Platform()->UnregisterIsolate(isolate);
Expand Down

0 comments on commit 3f68be1

Please sign in to comment.