Skip to content

Commit 481789c

Browse files
bnoordhuistargos
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 <joyeec9h3@gmail.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent f0b2992 commit 481789c

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)