From 3f68be1098b3f2b01b4137ef32bcbef1e0a4f2ad Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sat, 31 Aug 2019 06:39:44 +0100 Subject: [PATCH] tools: fix mksnapshot blob wrong freeing operator PR-URL: https://github.com/nodejs/node/pull/29384 Reviewed-By: Ben Noordhuis Reviewed-By: Richard Lau Reviewed-By: Colin Ihrig Reviewed-By: Anna Henningsen Reviewed-By: Joyee Cheung --- 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);