Skip to content

Commit 78aa937

Browse files
devnexenBridgeAR
authored andcommitted
tools: fix mksnapshot blob wrong freeing operator
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>
1 parent 01e5074 commit 78aa937

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/snapshot/snapshot_builder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ std::string SnapshotBuilder::Generate(
9999
// creator is still alive.
100100
main_instance->Dispose();
101101
result = FormatBlob(&blob, isolate_data_indexes);
102-
delete blob.data;
102+
delete[] blob.data;
103103
}
104104

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

0 commit comments

Comments
 (0)