aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/security
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-01-19 20:31:44 -0800
committerGravatar Craig Tiller <ctiller@google.com>2015-01-21 13:52:52 -0800
commit12b533de59e1c1ec81e52a9f51df70b8dfbe77a7 (patch)
treeba06069d3a9d8d0d14834eece67485e502c98ed0 /src/core/security
parentd2d0a1184e15c6497b11c4248b335573dd87d459 (diff)
Make send/recv_metadata take ownership of passed in metadata
Diffstat (limited to 'src/core/security')
-rw-r--r--src/core/security/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/security/auth.c b/src/core/security/auth.c
index f743b25838..9d0c075bc3 100644
--- a/src/core/security/auth.c
+++ b/src/core/security/auth.c
@@ -57,7 +57,7 @@ static void on_credentials_metadata(void *user_data, grpc_mdelem **md_elems,
grpc_call_element *elem = (grpc_call_element *)user_data;
size_t i;
for (i = 0; i < num_md; i++) {
- grpc_call_element_send_metadata(elem, md_elems[i]);
+ grpc_call_element_send_metadata(elem, grpc_mdelem_ref(md_elems[i]));
}
grpc_call_next_op(elem, &((call_data *)elem->call_data)->op);
}