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

Fixes

parent 6538504e
No related branches found
No related tags found
No related merge requests found
...@@ -620,9 +620,8 @@ static void publish_transport_locked(grpc_exec_ctx *exec_ctx, ...@@ -620,9 +620,8 @@ static void publish_transport_locked(grpc_exec_ctx *exec_ctx,
grpc_error *error = grpc_channel_stack_builder_finish( grpc_error *error = grpc_channel_stack_builder_finish(
exec_ctx, builder, 0, 1, connection_destroy, NULL, (void **)&con); exec_ctx, builder, 0, 1, connection_destroy, NULL, (void **)&con);
if (error != GRPC_ERROR_NONE) { if (error != GRPC_ERROR_NONE) {
const char *msg = grpc_error_string(error); gpr_log(GPR_ERROR, "error initializing subchannel stack: %s",
gpr_log(GPR_ERROR, "error initializing subchannel stack: %s", msg); grpc_error_string(error));
grpc_error_free_string(msg);
GRPC_ERROR_UNREF(error); GRPC_ERROR_UNREF(error);
abort(); /* TODO(ctiller): what to do here? */ abort(); /* TODO(ctiller): what to do here? */
} }
......
...@@ -102,9 +102,8 @@ grpc_channel *grpc_channel_create(grpc_exec_ctx *exec_ctx, const char *target, ...@@ -102,9 +102,8 @@ grpc_channel *grpc_channel_create(grpc_exec_ctx *exec_ctx, const char *target,
exec_ctx, builder, sizeof(grpc_channel), 1, destroy_channel, NULL, exec_ctx, builder, sizeof(grpc_channel), 1, destroy_channel, NULL,
(void **)&channel); (void **)&channel);
if (error != GRPC_ERROR_NONE) { if (error != GRPC_ERROR_NONE) {
const char *msg = grpc_error_string(error); gpr_log(GPR_ERROR, "channel stack builder failed: %s",
gpr_log(GPR_ERROR, "channel stack builder failed: %s", msg); grpc_error_string(error));
grpc_error_free_string(msg);
GRPC_ERROR_UNREF(error); GRPC_ERROR_UNREF(error);
goto done; goto done;
} }
......
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