aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-10-07 09:42:51 -0700
committerGravatar Mark D. Roth <roth@google.com>2016-10-07 09:42:51 -0700
commit499b0121032a2c04299c2c5eaa75a83cd06d5b99 (patch)
treec72b55f34ea84254a9b72c53cb3df7ff554bc90e /test
parentafae7217324da85cf351c00aedae8e3736bcbcda (diff)
parente5c744d9850a763639b2e7001cf2487e1c76133b (diff)
Merge remote-tracking branch 'upstream/master' into service_config
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