aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/client_config/subchannel_call_holder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ext/client_config/subchannel_call_holder.c')
-rw-r--r--src/core/ext/client_config/subchannel_call_holder.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ext/client_config/subchannel_call_holder.c b/src/core/ext/client_config/subchannel_call_holder.c
index 7eb17c713a..b10b204ff2 100644
--- a/src/core/ext/client_config/subchannel_call_holder.c
+++ b/src/core/ext/client_config/subchannel_call_holder.c
@@ -207,6 +207,10 @@ typedef struct {
static void retry_waiting_locked(grpc_exec_ctx *exec_ctx,
grpc_subchannel_call_holder *holder) {
+ if (holder->waiting_ops_count == 0) {
+ return;
+ }
+
retry_ops_args *a = gpr_malloc(sizeof(*a));
a->ops = holder->waiting_ops;
a->nops = holder->waiting_ops_count;