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

Fix memory leak

parent 75731e65
No related branches found
No related tags found
No related merge requests found
......@@ -137,6 +137,10 @@ static void on_md_processing_done(
grpc_slice message;
grpc_transport_stream_op *close_op = gpr_malloc(sizeof(*close_op));
memset(close_op, 0, sizeof(*close_op));
for (size_t i = 0; i < calld->md.count; i++) {
grpc_slice_unref_internal(&exec_ctx, calld->md.metadata[i].key);
grpc_slice_unref_internal(&exec_ctx, calld->md.metadata[i].value);
}
grpc_metadata_array_destroy(&calld->md);
error_details = error_details != NULL
? error_details
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment