Fix leak on ares resolver test (#30125)

* Fix leak on ares resolver test

The pollset was not being properly shutdown. ASAN was failing 100% on
resolve_address_using_ares_resolver_test for a month (not identified in
CI).

* DoNothgin -> nullptr
pull/30128/head
AJ Heller 3 years ago committed by GitHub
parent 720bed25bc
commit 9d7d97b243
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      test/core/iomgr/resolve_address_test.cc

@ -436,9 +436,11 @@ class PollsetSetWrapper {
~PollsetSetWrapper() {
grpc_pollset_set_del_pollset(pss_, ps_);
grpc_pollset_set_destroy(pss_);
grpc_pollset_shutdown(ps_, nullptr);
grpc_core::ExecCtx::Get()->Flush();
grpc_pollset_destroy(ps_);
gpr_free(ps_);
grpc_pollset_set_destroy(pss_);
gpr_log(GPR_DEBUG, "PollsetSetWrapper:%p deleted", this);
}

Loading…
Cancel
Save