[api-fuzzer] Fix memory leak (#33109)

ApiFuzzer::CreateChannel() called twice creates two channels but doesn't
delete the first.
Choose some reasonable behavior.
pull/33122/head
Craig Tiller 2 years ago committed by GitHub
parent 123811399b
commit 66d9f52fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      test/core/end2end/fuzzers/api_fuzzer.cc
  2. 8
      test/core/end2end/fuzzers/api_fuzzer_corpus/clusterfuzz-testcase-minimized-api_fuzzer-5949647671394304

@ -882,6 +882,7 @@ ApiFuzzer::Result ApiFuzzer::PollCq() {
}
ApiFuzzer::Result ApiFuzzer::CreateChannel(
const api_fuzzer::CreateChannel& create_channel) {
if (channel_ == nullptr) return Result::kComplete;
grpc_channel_args* args =
ReadArgs(resource_quota_, create_channel.channel_args());
grpc_channel_credentials* creds =

Loading…
Cancel
Save