From 46168bf96f91cbd593761c2a8d23641f7b0273f9 Mon Sep 17 00:00:00 2001 From: Vijay Pai Date: Fri, 22 Jun 2018 10:35:03 -0700 Subject: [PATCH] Check the value in the pointer, not the address --- src/core/lib/gprpp/thd_posix.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/lib/gprpp/thd_posix.cc b/src/core/lib/gprpp/thd_posix.cc index 533c07e7d88..2751b221a8f 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();