diff options
author | Hongwei Wang <hongweiw@google.com> | 2015-08-05 11:21:15 -0700 |
---|---|---|
committer | Hongwei Wang <hongweiw@google.com> | 2015-08-05 11:21:15 -0700 |
commit | 4346e53be633898d60c0bea2d674de11cf69a8e3 (patch) | |
tree | b6aa06e4dc4488945a5f1299985ef9f3ac9e053e /src/core/surface | |
parent | 00e9c60c87d3d9351759551ce662c1b9572f7ced (diff) | |
parent | 183c9f77a7506b4eeebc58ca5a98069d9617eced (diff) |
Merge branch 'master' of https://github.com/grpc/grpc into zookeeper
Diffstat (limited to 'src/core/surface')
-rw-r--r-- | src/core/surface/channel.c | 4 | ||||
-rw-r--r-- | src/core/surface/server_chttp2.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/core/surface/channel.c b/src/core/surface/channel.c index 2b15dc0be8..c10547133e 100644 --- a/src/core/surface/channel.c +++ b/src/core/surface/channel.c @@ -230,7 +230,9 @@ static void destroy_channel(void *p, int ok) { registered_call *rc = channel->registered_calls; channel->registered_calls = rc->next; GRPC_MDELEM_UNREF(rc->path); - GRPC_MDELEM_UNREF(rc->authority); + if (rc->authority) { + GRPC_MDELEM_UNREF(rc->authority); + } gpr_free(rc); } grpc_mdctx_unref(channel->metadata_context); diff --git a/src/core/surface/server_chttp2.c b/src/core/surface/server_chttp2.c index 78c53466b3..4ab845bc00 100644 --- a/src/core/surface/server_chttp2.c +++ b/src/core/surface/server_chttp2.c @@ -80,7 +80,7 @@ static void destroy(grpc_server *server, void *tcpp) { grpc_tcp_server_destroy(tcp, grpc_server_listener_destroy_done, server); } -int grpc_server_add_http2_port(grpc_server *server, const char *addr) { +int grpc_server_add_insecure_http2_port(grpc_server *server, const char *addr) { grpc_resolved_addresses *resolved = NULL; grpc_tcp_server *tcp = NULL; size_t i; |