Merge pull request #348 from dklempner/asan

Fix poll_kick_posix_test under asan
pull/352/head
Craig Tiller 10 years ago
commit 3e598cdcfe
  1. 1
      src/core/iomgr/pollset_kick.c
  2. 1
      test/core/iomgr/poll_kick_posix_test.c

@ -138,6 +138,7 @@ void grpc_pollset_kick_kick(grpc_pollset_kick_state *kick_state) {
} }
void grpc_pollset_kick_global_init_fallback_fd(void) { void grpc_pollset_kick_global_init_fallback_fd(void) {
gpr_mu_init(&fd_freelist_mu);
grpc_wakeup_fd_global_init_force_fallback(); grpc_wakeup_fd_global_init_force_fallback();
} }

@ -105,6 +105,7 @@ static void test_over_free(void) {
grpc_pollset_kick_post_poll(&kick_state[i]); grpc_pollset_kick_post_poll(&kick_state[i]);
grpc_pollset_kick_destroy(&kick_state[i]); grpc_pollset_kick_destroy(&kick_state[i]);
} }
gpr_free(kick_state);
} }
static void run_tests(void) { static void run_tests(void) {

Loading…
Cancel
Save