From 2ec37e1bdbd45b09e77f819657ce3919767ce18b Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Wed, 22 Feb 2017 10:26:52 -0800 Subject: [PATCH] Fix memory leak --- test/cpp/microbenchmarks/bm_call_create.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/cpp/microbenchmarks/bm_call_create.cc b/test/cpp/microbenchmarks/bm_call_create.cc index bf09046798a..4224bd6ddcd 100644 --- a/test/cpp/microbenchmarks/bm_call_create.cc +++ b/test/cpp/microbenchmarks/bm_call_create.cc @@ -294,6 +294,7 @@ static void BM_FilterInitDestroy(benchmark::State &state) { } grpc_channel_stack_destroy(&exec_ctx, channel_stack); grpc_exec_ctx_finish(&exec_ctx); + gpr_free(channel_stack); state.SetLabel(label.str()); } @@ -360,6 +361,7 @@ static void BM_FilterInitSendInitialMetadataThenDestroy( } grpc_channel_stack_destroy(&exec_ctx, channel_stack); grpc_exec_ctx_finish(&exec_ctx); + gpr_free(channel_stack); state.SetLabel(label.str()); }