aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/microbenchmarks/bm_call_create.cc
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-02-22 10:26:52 -0800
committerGravatar Craig Tiller <ctiller@google.com>2017-02-22 10:26:52 -0800
commit2ec37e1bdbd45b09e77f819657ce3919767ce18b (patch)
tree0c786ec191a5ee758b6efbaa2df35ae0f48f99ca /test/cpp/microbenchmarks/bm_call_create.cc
parenteb022becae96c1c3ba622e0880ae8024c3c600bc (diff)
Fix memory leak
Diffstat (limited to 'test/cpp/microbenchmarks/bm_call_create.cc')
-rw-r--r--test/cpp/microbenchmarks/bm_call_create.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/cpp/microbenchmarks/bm_call_create.cc b/test/cpp/microbenchmarks/bm_call_create.cc
index bf09046798..4224bd6ddc 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());
}