From dd2995c35eec215692c21aa801bb03aa29b9e851 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 31 Aug 2019 06:39:44 +0100 Subject: [PATCH] tools: mksnapshot fix blob wrong freeing operator --- tools/snapshot/snapshot_builder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);