aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-10-06 11:56:54 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-10-06 11:56:54 -0700
commit624f4ba76d99b14d9e90fee03cee8d0866e1bca6 (patch)
tree21d1615ffccf4772b9630fd4d81ddaf714900a31 /test
parent3750af12d9106dce6af1d1cb064f58e9de748b08 (diff)
Add missing delete
Diffstat (limited to 'test')
-rw-r--r--test/cpp/qps/client_async.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/cpp/qps/client_async.cc b/test/cpp/qps/client_async.cc
index 5d9cb4bd0c..081114859c 100644
--- a/test/cpp/qps/client_async.cc
+++ b/test/cpp/qps/client_async.cc
@@ -243,6 +243,7 @@ class AsyncClient : public ClientImpl<StubType, RequestType> {
// this thread isn't supposed to shut down
std::lock_guard<std::mutex> l(shutdown_state_[thread_idx]->mutex);
if (shutdown_state_[thread_idx]->shutdown) {
+ delete ctx;
return true;
} else if (!ctx->RunNextState(ok, entry)) {
// The RPC and callback are done, so clone the ctx