Skip to content

Commit

Permalink
tools: fix use-after-free mkcodecache warning
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
bnoordhuis authored and danbev committed Apr 24, 2019
1 parent fb3f600 commit a88700a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/code_cache/mkcodecache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ int main(int argc, char* argv[]) {
out.close();
}

v8::V8::ShutdownPlatform();
return 0;
}

0 comments on commit a88700a

Please sign in to comment.