Skip to content

Commit a88700a

Browse files
bnoordhuisdanbev
authored andcommitted
tools: fix use-after-free mkcodecache warning
Call `v8::Platform::ShutdownPlatform()` to fix a Coverity warning about the `v8::Platform` instance being deleted when it's still in use. PR-URL: #27332 Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent fb3f600 commit a88700a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/code_cache/mkcodecache.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,6 @@ int main(int argc, char* argv[]) {
5858
out.close();
5959
}
6060

61+
v8::V8::ShutdownPlatform();
6162
return 0;
6263
}

0 commit comments

Comments
 (0)