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 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
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.