aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-12-09 09:37:02 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-12-09 09:37:02 -0800
commit359a291e9b499c0822fdea316784694705ed2170 (patch)
treebb9e44435e27c13968f245bdbe79c2a413303360 /src/core
parentaa5a61e888c168ff8fc78847e43bdbf0592df76c (diff)
parenteec13dc4de1023ed4cf3046f074ed2ed40d865a4 (diff)
Merge github.com:grpc/grpc into make_a_full_request
Diffstat (limited to 'src/core')
-rw-r--r--src/core/surface/channel_create.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/surface/channel_create.c b/src/core/surface/channel_create.c
index aceb932742..fe7e1072ac 100644
--- a/src/core/surface/channel_create.c
+++ b/src/core/surface/channel_create.c
@@ -218,6 +218,9 @@ grpc_channel *grpc_insecure_channel_create(const char *target,
GRPC_CHANNEL_INTERNAL_REF(f->master, "subchannel_factory");
resolver = grpc_resolver_create(target, &f->base);
if (!resolver) {
+ GRPC_CHANNEL_INTERNAL_UNREF(&exec_ctx, f->master, "subchannel_factory");
+ grpc_subchannel_factory_unref(&exec_ctx, &f->base);
+ grpc_exec_ctx_finish(&exec_ctx);
return NULL;
}