Skip to content
Snippets Groups Projects
Commit 7d0f9ea2 authored by Craig Tiller's avatar Craig Tiller
Browse files

Fix memory leak

parent b0a32fc7
No related branches found
No related tags found
No related merge requests found
...@@ -234,6 +234,9 @@ static void destroy_call_elem(grpc_call_element *elem) { ...@@ -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) { ...@@ -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 = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment