aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-07-28 09:13:38 -0700
committerGravatar Mark D. Roth <roth@google.com>2016-07-28 09:13:38 -0700
commit9530e8af0570760017d9212f959ca93e23c6f7a3 (patch)
tree88a853440f67bce29c796680d200db283f97e8a9 /test
parentdaf626c3bba0266a090661530f264d5b6870b2a3 (diff)
parent9fd00425c50800906f4deb2c5aafa9b64217b54c (diff)
Merge branch 'filter_call_init_failure' into filter_api
Diffstat (limited to 'test')
-rw-r--r--test/core/end2end/tests/filter_call_init_fails.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/core/end2end/tests/filter_call_init_fails.c b/test/core/end2end/tests/filter_call_init_fails.c
index 4980b37278..08c377a281 100644
--- a/test/core/end2end/tests/filter_call_init_fails.c
+++ b/test/core/end2end/tests/filter_call_init_fails.c
@@ -246,8 +246,10 @@ static bool maybe_add_filter(grpc_channel_stack_builder *builder, void *arg) {
grpc_channel_stack_builder_iterator *it =
grpc_channel_stack_builder_create_iterator_at_last(builder);
GPR_ASSERT(grpc_channel_stack_builder_move_prev(it));
- return grpc_channel_stack_builder_add_filter_before(it, &test_filter, NULL,
- NULL);
+ const bool retval = grpc_channel_stack_builder_add_filter_before(
+ it, &test_filter, NULL, NULL);
+ grpc_channel_stack_builder_iterator_destroy(it);
+ return retval;
} else {
return true;
}