Skip to content
Snippets Groups Projects
Commit 624f4ba7 authored by Craig Tiller's avatar Craig Tiller
Browse files

Add missing delete

parent 3750af12
No related branches found
No related tags found
No related merge requests found
...@@ -243,6 +243,7 @@ class AsyncClient : public ClientImpl<StubType, RequestType> { ...@@ -243,6 +243,7 @@ class AsyncClient : public ClientImpl<StubType, RequestType> {
// this thread isn't supposed to shut down // this thread isn't supposed to shut down
std::lock_guard<std::mutex> l(shutdown_state_[thread_idx]->mutex); std::lock_guard<std::mutex> l(shutdown_state_[thread_idx]->mutex);
if (shutdown_state_[thread_idx]->shutdown) { if (shutdown_state_[thread_idx]->shutdown) {
delete ctx;
return true; return true;
} else if (!ctx->RunNextState(ok, entry)) { } else if (!ctx->RunNextState(ok, entry)) {
// The RPC and callback are done, so clone the ctx // The RPC and callback are done, so clone the ctx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment