aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Vijay Pai <vpai@google.com>2018-06-26 14:36:06 -0700
committerGravatar GitHub <noreply@github.com>2018-06-26 14:36:06 -0700
commit35bbd90206558b3a7cda385d982c2a0f52e3ccbd (patch)
tree6a0970a3e42f3a9c1052699e44188854ea1a6a9e /src
parent0458a6b89ab74c1823266558acd6cf5adeca7664 (diff)
parent46168bf96f91cbd593761c2a8d23641f7b0273f9 (diff)
Merge pull request #15848 from vjpai/thd_fix
Check the value in the pointer, not the address
Diffstat (limited to 'src')
-rw-r--r--src/core/lib/gprpp/thd_posix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/gprpp/thd_posix.cc b/src/core/lib/gprpp/thd_posix.cc
index 533c07e7d8..2751b221a8 100644
--- a/src/core/lib/gprpp/thd_posix.cc
+++ b/src/core/lib/gprpp/thd_posix.cc
@@ -105,7 +105,7 @@ class ThreadInternalsPosix
GPR_ASSERT(pthread_attr_destroy(&attr) == 0);
- if (!success) {
+ if (!(*success)) {
/* don't use gpr_free, as this was allocated using malloc (see above) */
free(info);
grpc_core::Fork::DecThreadCount();