diff options
author | Craig Tiller <ctiller@google.com> | 2017-02-22 10:26:52 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-02-22 10:26:52 -0800 |
commit | 2ec37e1bdbd45b09e77f819657ce3919767ce18b (patch) | |
tree | 0c786ec191a5ee758b6efbaa2df35ae0f48f99ca | |
parent | eb022becae96c1c3ba622e0880ae8024c3c600bc (diff) |
Fix memory leak
-rw-r--r-- | test/cpp/microbenchmarks/bm_call_create.cc | 2 |
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()); } |