diff --git a/tools/snapshot/snapshot_builder.cc b/tools/snapshot/snapshot_builder.cc index 7f409a8fcd2482..8a97513ba905fc 100644 --- a/tools/snapshot/snapshot_builder.cc +++ b/tools/snapshot/snapshot_builder.cc @@ -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);