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

Fix leaks

parent 92e02578
No related branches found
No related tags found
No related merge requests found
......@@ -162,6 +162,12 @@ static void destruct_transport(grpc_exec_ctx *exec_ctx,
gpr_free(ping);
}
while (t->write_cb_pool) {
grpc_chttp2_write_cb *next = t->write_cb_pool->next;
gpr_free(t->write_cb_pool);
t->write_cb_pool = next;
}
gpr_free(t->peer_string);
gpr_free(t);
}
......
......@@ -446,6 +446,13 @@ static void destroy_channel(grpc_exec_ctx *exec_ctx, channel_data *chand,
grpc_error_free_string(msg);
}
GRPC_ERROR_UNREF(error);
grpc_transport_op *op = grpc_make_transport_op(&chand->finish_destroy_channel_closure);
op->set_accept_stream = true;
grpc_channel_next_op(exec_ctx,
grpc_channel_stack_element(
grpc_channel_get_channel_stack(chand->channel), 0),
op);
}
static void cpstr(char **dest, size_t *capacity, grpc_mdstr *value) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment