diff options
author | Craig Tiller <ctiller@google.com> | 2016-09-28 12:31:07 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-09-28 12:31:07 -0700 |
commit | 5d882637e81277cbaf912a375321670e5c8ca01a (patch) | |
tree | f6ae2ff00d924f61b4310c76bd6a2dfa5281475e | |
parent | d29a351dff534dcd30b764bfaf5d0590ab495aad (diff) |
Fix memory leaks
-rw-r--r-- | test/core/end2end/tests/buffer_pool_server.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/core/end2end/tests/buffer_pool_server.c b/test/core/end2end/tests/buffer_pool_server.c index 40117c99b1..923ebb94fc 100644 --- a/test/core/end2end/tests/buffer_pool_server.c +++ b/test/core/end2end/tests/buffer_pool_server.c @@ -257,6 +257,7 @@ void buffer_pool_server(grpc_end2end_test_config config) { grpc_metadata_array_destroy(&initial_metadata_recv[call_id]); grpc_metadata_array_destroy(&trailing_metadata_recv[call_id]); grpc_call_destroy(client_calls[call_id]); + gpr_free(details[call_id]); pending_client_calls--; } else if (ev_tag < SERVER_RECV_BASE_TAG) { @@ -287,6 +288,7 @@ void buffer_pool_server(grpc_end2end_test_config config) { pending_server_recv_calls++; grpc_call_details_destroy(&call_details[call_id]); + grpc_metadata_array_destroy(&request_metadata_recv[call_id]); } else if (ev_tag < SERVER_END_BASE_TAG) { /* finished read on the server */ int call_id = ev_tag - SERVER_RECV_BASE_TAG; @@ -346,6 +348,10 @@ void buffer_pool_server(grpc_end2end_test_config config) { GPR_ASSERT(cancelled_calls_on_client == cancelled_calls_on_server); + grpc_byte_buffer_destroy(request_payload); + gpr_slice_unref(request_payload_slice); + grpc_buffer_pool_unref(buffer_pool); + end_test(&f); config.tear_down_data(&f); } |