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 <info@bnoordhuis.nl>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
  • Loading branch information
devnexen authored and Trott committed Sep 2, 2019
1 parent 9e23eef commit 94c944d
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 94c944d

Please sign in to comment.