Skip to content

Commit 78aa937

Browse files
devnexenBridgeAR
authored andcommitted
tools: fix mksnapshot blob wrong freeing operator
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]>
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)