tools: fix mksnapshot blob wrong freeing operator
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
9e23eeffd0
commit
94c944d0d5
@ -99,7 +99,7 @@ std::string SnapshotBuilder::Generate(
|
|||||||
// creator is still alive.
|
// creator is still alive.
|
||||||
main_instance->Dispose();
|
main_instance->Dispose();
|
||||||
result = FormatBlob(&blob, isolate_data_indexes);
|
result = FormatBlob(&blob, isolate_data_indexes);
|
||||||
delete blob.data;
|
delete[] blob.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
per_process::v8_platform.Platform()->UnregisterIsolate(isolate);
|
per_process::v8_platform.Platform()->UnregisterIsolate(isolate);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user