aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/client_config/client_channel.c
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-09-30 08:23:30 -0700
committerGravatar Mark D. Roth <roth@google.com>2016-09-30 08:23:30 -0700
commitd51e0352c5460a0c050a026dd4d2c1b498ddb57f (patch)
tree58f3826e05756045f866dbdd0feee836da722550 /src/core/ext/client_config/client_channel.c
parent408913845c04ab9c9a60de9370becad83999f50f (diff)
Various fixes and clean-ups.
Diffstat (limited to 'src/core/ext/client_config/client_channel.c')
-rw-r--r--src/core/ext/client_config/client_channel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/ext/client_config/client_channel.c b/src/core/ext/client_config/client_channel.c
index 3860f65f95..026d3a51b8 100644
--- a/src/core/ext/client_config/client_channel.c
+++ b/src/core/ext/client_config/client_channel.c
@@ -811,7 +811,9 @@ static grpc_error *cc_init_call_elem(grpc_exec_ctx *exec_ctx,
*wait_for_ready ? WAIT_FOR_READY_TRUE : WAIT_FOR_READY_FALSE;
}
}
- grpc_method_config_table_unref(chand->method_config_table);
+ if (method_config_table != NULL) {
+ grpc_method_config_table_unref(method_config_table);
+ }
calld->deadline = args->deadline;
calld->path = GRPC_MDSTR_REF(args->path);
calld->cancel_error = GRPC_ERROR_NONE;