Fixing mem leak and compilation error in tsan.

This commit is contained in:
Julien Boeuf 2015-10-10 00:21:05 -07:00
parent 4e02e84062
commit 26bf71ce37
2 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}

View File

@ -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.