diff options
author | Craig Tiller <ctiller@google.com> | 2016-04-19 20:16:07 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-04-19 20:16:07 -0700 |
commit | 22524376a1254306dd722412cfb5d56f942f12b1 (patch) | |
tree | e67ba8b0783debb544c125e743bb3cf64963930e /test/core/end2end | |
parent | 7bbcd7475756bc5c33afbc33ec04f1ec65de3249 (diff) |
Fix leak
Diffstat (limited to 'test/core/end2end')
-rw-r--r-- | test/core/end2end/fuzzers/api_fuzzer.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/core/end2end/fuzzers/api_fuzzer.c b/test/core/end2end/fuzzers/api_fuzzer.c index 5189dad69c..efd438250b 100644 --- a/test/core/end2end/fuzzers/api_fuzzer.c +++ b/test/core/end2end/fuzzers/api_fuzzer.c @@ -431,7 +431,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { grpc_completion_queue *cq = grpc_completion_queue_create(NULL); while (!is_eof(&inp) || g_channel != NULL || g_server != NULL || - pending_channel_watches > 0 || pending_pings > 0 || pending_ops > 0) { + pending_channel_watches > 0 || pending_pings > 0 || pending_ops > 0 || active_call->type != ROOT || active_call->next != active_call) { if (is_eof(&inp)) { if (g_channel != NULL) { grpc_channel_destroy(g_channel); @@ -847,6 +847,9 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { GPR_ASSERT(g_channel == NULL); GPR_ASSERT(g_server == NULL); + GPR_ASSERT(active_call->type == ROOT); + GPR_ASSERT(active_call->next == active_call); + gpr_free(active_call); grpc_completion_queue_shutdown(cq); GPR_ASSERT( |