Fixing mem leak and compilation error in tsan.

reviewable/pr3765/r1
Julien Boeuf 10 years ago
parent 4e02e84062
commit 26bf71ce37
  1. 1
      src/core/security/credentials.c
  2. 1
      test/core/security/credentials_test.c

@ -88,6 +88,7 @@ void grpc_channel_credentials_unref(grpc_channel_credentials *creds) {
if (creds == NULL) return;
if (gpr_unref(&creds->refcount)) {
creds->vtable->destruct(creds);
grpc_call_credentials_unref(creds->call_creds);
gpr_free(creds);
}
}

@ -54,7 +54,6 @@ static const char test_google_iam_authorization_token[] = "blahblahblhahb";
static const char test_google_iam_authority_selector[] = "respectmyauthoritah";
static const char test_oauth2_bearer_token[] =
"Bearer blaaslkdjfaslkdfasdsfasf";
static const char test_root_cert[] = "I am the root!";
/* This JSON key was generated with the GCE console and revoked immediately.
The identifiers have been changed as well.

Loading…
Cancel
Save