Merge pull request #724 from ctiller/auth_leak

Fix memory leak
pull/732/head
jboeuf 10 years ago
commit 275e975c53
  1. 6
      src/core/security/auth.c

@ -234,6 +234,9 @@ static void destroy_call_elem(grpc_call_element *elem) {
if (calld->host != NULL) { if (calld->host != NULL) {
grpc_mdstr_unref(calld->host); grpc_mdstr_unref(calld->host);
} }
if (calld->method != NULL) {
grpc_mdstr_unref(calld->method);
}
} }
/* Constructor for channel_data */ /* Constructor for channel_data */
@ -276,6 +279,9 @@ static void destroy_channel_elem(grpc_channel_element *elem) {
if (channeld->error_msg_key != NULL) { if (channeld->error_msg_key != NULL) {
grpc_mdstr_unref(channeld->error_msg_key); 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 = { const grpc_channel_filter grpc_client_auth_filter = {

Loading…
Cancel
Save