aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/http/httpscli_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/core/http/httpscli_test.cc')
-rw-r--r--test/core/http/httpscli_test.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/core/http/httpscli_test.cc b/test/core/http/httpscli_test.cc
index 76bbd2d366..ee2bff18db 100644
--- a/test/core/http/httpscli_test.cc
+++ b/test/core/http/httpscli_test.cc
@@ -195,11 +195,12 @@ int main(int argc, char** argv) {
test_get(port);
test_post(port);
- grpc_httpcli_context_destroy(&g_context);
- GRPC_CLOSURE_INIT(&destroyed, destroy_pops, &g_pops,
- grpc_schedule_on_exec_ctx);
- grpc_pollset_shutdown(grpc_polling_entity_pollset(&g_pops), &destroyed);
-
+ {
+ grpc_httpcli_context_destroy(&g_context);
+ GRPC_CLOSURE_INIT(&destroyed, destroy_pops, &g_pops,
+ grpc_schedule_on_exec_ctx);
+ grpc_pollset_shutdown(grpc_polling_entity_pollset(&g_pops), &destroyed);
+ }
grpc_shutdown();
gpr_free(grpc_polling_entity_pollset(&g_pops));