Merge pull request #15848 from vjpai/thd_fix

Check the value in the pointer, not the address
pull/15882/merge
Vijay Pai 7 years ago committed by GitHub
commit 35bbd90206
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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();

Loading…
Cancel
Save