[libc-commits] [PATCH] D155005: [libc][Obvious] Check if the state hasn't already been destroyed on shutdown
Joseph Huber via Phabricator via libc-commits
libc-commits at lists.llvm.org
Tue Jul 11 12:35:52 PDT 2023
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa6080767268c: [libc][Obvious] Check if the state hasn't already been destroyed on shutdown (authored by jhuber6).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D155005/new/
https://reviews.llvm.org/D155005
Files:
libc/utils/gpu/server/rpc_server.cpp
Index: libc/utils/gpu/server/rpc_server.cpp
===================================================================
--- libc/utils/gpu/server/rpc_server.cpp
+++ libc/utils/gpu/server/rpc_server.cpp
@@ -231,7 +231,7 @@
}
rpc_status_t rpc_shutdown(void) {
- if (state->reference_count-- == 1)
+ if (state && state->reference_count-- == 1)
delete state;
return RPC_STATUS_SUCCESS;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155005.539250.patch
Type: text/x-patch
Size: 390 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230711/0a8f2e26/attachment.bin>
More information about the libc-commits
mailing list