aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-10-10 00:21:05 -0700
committerGravatar Julien Boeuf <jboeuf@google.com>2015-10-10 00:21:05 -0700
commit26bf71ce37d39bb3dd2c1ae01fa837db8a082799 (patch)
tree1bea5ce7c93d131487182c3c523ffeb28eed2431 /src/core
parent4e02e84062d81137496d00e6c5f895966aead92d (diff)
Fixing mem leak and compilation error in tsan.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/security/credentials.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/security/credentials.c b/src/core/security/credentials.c
index ef1f40633b..2674003962 100644
--- a/src/core/security/credentials.c
+++ b/src/core/security/credentials.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);
}
}