diff options
author | Mark D. Roth <roth@google.com> | 2016-07-27 15:52:46 +0000 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2016-07-27 15:52:46 +0000 |
commit | 05d73af3d18ec301d2778f343edd1cae7d4acd1a (patch) | |
tree | a15737128bd797bf474cba9cff8773253ba85723 /test/core | |
parent | 898d84d309ede54c19c29e18a3d78546b3168323 (diff) |
Fixed asan failure and some refcounting bugs.
Diffstat (limited to 'test/core')
-rw-r--r-- | test/core/end2end/tests/filter_call_init_fails.c | 6 |
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; } |