diff options
author | Craig Tiller <ctiller@google.com> | 2016-09-27 13:55:24 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-09-27 13:55:24 -0700 |
commit | 4b3b5d0e82e883c8632e50604f2cde30e4e056d0 (patch) | |
tree | a04295b795152599bdea10d4b17a83cea5accc7e /test/core/util | |
parent | 32c804e6a76d37460f34dc7154431b2c38d86c99 (diff) |
Fixes for destruction
Diffstat (limited to 'test/core/util')
-rw-r--r-- | test/core/util/mock_endpoint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/core/util/mock_endpoint.c b/test/core/util/mock_endpoint.c index e4c478281f..29428ff390 100644 --- a/test/core/util/mock_endpoint.c +++ b/test/core/util/mock_endpoint.c @@ -90,13 +90,14 @@ static void me_really_destroy(grpc_exec_ctx *exec_ctx, void *mp, grpc_error *error) { grpc_mock_endpoint *m = mp; gpr_slice_buffer_destroy(&m->read_buffer); + grpc_buffer_user_destroy(exec_ctx, &m->buffer_user); gpr_free(m); } static void me_destroy(grpc_exec_ctx *exec_ctx, grpc_endpoint *ep) { grpc_mock_endpoint *m = (grpc_mock_endpoint *)ep; grpc_buffer_user_shutdown(exec_ctx, &m->buffer_user, - grpc_closure_create(me_really_destroy, m)); + grpc_closure_create(me_really_destroy, m)); } static char *me_get_peer(grpc_endpoint *ep) { |