From 7d0f9ea29a32c599b6cb2e8fdd5cd1c4e15dbe61 Mon Sep 17 00:00:00 2001
From: Craig Tiller <ctiller@google.com>
Date: Mon, 23 Feb 2015 13:37:07 -0800
Subject: [PATCH] Fix memory leak

---
 src/core/security/auth.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/core/security/auth.c b/src/core/security/auth.c
index 92878e3b7e..9b67d59cb8 100644
--- a/src/core/security/auth.c
+++ b/src/core/security/auth.c
@@ -234,6 +234,9 @@ static void destroy_call_elem(grpc_call_element *elem) {
   if (calld->host != NULL) {
     grpc_mdstr_unref(calld->host);
   }
+  if (calld->method != NULL) {
+    grpc_mdstr_unref(calld->method);
+  }
 }
 
 /* Constructor for channel_data */
@@ -276,6 +279,9 @@ static void destroy_channel_elem(grpc_channel_element *elem) {
   if (channeld->error_msg_key != NULL) {
     grpc_mdstr_unref(channeld->error_msg_key);
   }
+  if (channeld->path_string != NULL) {
+    grpc_mdstr_unref(channeld->path_string);
+  }
 }
 
 const grpc_channel_filter grpc_client_auth_filter = {
-- 
GitLab