[server_fuzzer] Fix call details and metadata destruction point (#34579)

Fixes b/302517571
pull/34604/head
Yash Tibrewal 1 year ago committed by GitHub
parent 7044af2691
commit df1976b590
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      test/core/end2end/fuzzers/server_fuzzer.cc

@ -112,8 +112,6 @@ DEFINE_PROTO_FUZZER(const fuzzer_input::Msg& msg) {
done:
if (call1 != nullptr) grpc_call_unref(call1);
grpc_call_details_destroy(&call_details1);
grpc_metadata_array_destroy(&request_metadata1);
grpc_server_shutdown_and_notify(server, cq, tag(0xdead));
grpc_server_cancel_all_calls(server);
grpc_core::Timestamp deadline =
@ -146,6 +144,8 @@ DEFINE_PROTO_FUZZER(const fuzzer_input::Msg& msg) {
grpc_core::Timestamp::Now() < deadline);
GPR_ASSERT(ev.type == GRPC_QUEUE_SHUTDOWN);
}
grpc_call_details_destroy(&call_details1);
grpc_metadata_array_destroy(&request_metadata1);
grpc_server_destroy(server);
grpc_completion_queue_destroy(cq);
}

Loading…
Cancel
Save