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

Fix memory leak

parent eb022bec
No related branches found
No related tags found
No related merge requests found
...@@ -294,6 +294,7 @@ static void BM_FilterInitDestroy(benchmark::State &state) { ...@@ -294,6 +294,7 @@ static void BM_FilterInitDestroy(benchmark::State &state) {
} }
grpc_channel_stack_destroy(&exec_ctx, channel_stack); grpc_channel_stack_destroy(&exec_ctx, channel_stack);
grpc_exec_ctx_finish(&exec_ctx); grpc_exec_ctx_finish(&exec_ctx);
gpr_free(channel_stack);
state.SetLabel(label.str()); state.SetLabel(label.str());
} }
...@@ -360,6 +361,7 @@ static void BM_FilterInitSendInitialMetadataThenDestroy( ...@@ -360,6 +361,7 @@ static void BM_FilterInitSendInitialMetadataThenDestroy(
} }
grpc_channel_stack_destroy(&exec_ctx, channel_stack); grpc_channel_stack_destroy(&exec_ctx, channel_stack);
grpc_exec_ctx_finish(&exec_ctx); grpc_exec_ctx_finish(&exec_ctx);
gpr_free(channel_stack);
state.SetLabel(label.str()); state.SetLabel(label.str());
} }
......
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