Skip to content
Snippets Groups Projects
Commit a0bb3742 authored by Mark D. Roth's avatar Mark D. Roth
Browse files

Fix server_chttp2_test.

parent 0f4bbba8
No related branches found
No related tags found
No related merge requests found
...@@ -339,9 +339,8 @@ error: ...@@ -339,9 +339,8 @@ error:
if (tcp_server) { if (tcp_server) {
grpc_tcp_server_unref(exec_ctx, tcp_server); grpc_tcp_server_unref(exec_ctx, tcp_server);
} else { } else {
grpc_channel_args_destroy(state->args); grpc_channel_args_destroy(args);
grpc_chttp2_server_handshaker_factory_destroy(exec_ctx, grpc_chttp2_server_handshaker_factory_destroy(exec_ctx, handshaker_factory);
state->handshaker_factory);
gpr_free(state); gpr_free(state);
} }
*port_num = 0; *port_num = 0;
......
...@@ -44,8 +44,11 @@ ...@@ -44,8 +44,11 @@
#include "test/core/util/test_config.h" #include "test/core/util/test_config.h"
void test_unparsable_target(void) { void test_unparsable_target(void) {
int port = grpc_server_add_insecure_http2_port(NULL, "["); grpc_channel_args args = {0, NULL};
grpc_server *server = grpc_server_create(&args, NULL);
int port = grpc_server_add_insecure_http2_port(server, "[");
GPR_ASSERT(port == 0); GPR_ASSERT(port == 0);
grpc_server_destroy(server);
} }
void test_add_same_port_twice() { void test_add_same_port_twice() {
......
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