aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/memory_usage/client.c
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-03-31 08:27:28 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-03-31 08:27:28 -0700
commitdd36b15315cd691e86a94d4574bd9f3e3a33633f (patch)
tree75bddf4bae42daf8b1c79eea61b678c31c0a20b4 /test/core/memory_usage/client.c
parent547631eaf89709ed2dcb30e9f8fdb617617c7aff (diff)
Call ref/unref, bugfixes
Diffstat (limited to 'test/core/memory_usage/client.c')
-rw-r--r--test/core/memory_usage/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/core/memory_usage/client.c b/test/core/memory_usage/client.c
index 51ea51bc12..78b9db9195 100644
--- a/test/core/memory_usage/client.c
+++ b/test/core/memory_usage/client.c
@@ -120,7 +120,7 @@ static void finish_ping_pong_request(int call_idx) {
grpc_metadata_array_destroy(&calls[call_idx].initial_metadata_recv);
grpc_metadata_array_destroy(&calls[call_idx].trailing_metadata_recv);
grpc_slice_unref(calls[call_idx].details);
- grpc_call_destroy(calls[call_idx].call);
+ grpc_call_unref(calls[call_idx].call);
calls[call_idx].call = NULL;
}
@@ -187,7 +187,7 @@ static struct grpc_memory_counters send_snapshot_request(int call_idx,
grpc_byte_buffer_destroy(response_payload_recv);
grpc_slice_unref(calls[call_idx].details);
calls[call_idx].details = grpc_empty_slice();
- grpc_call_destroy(calls[call_idx].call);
+ grpc_call_unref(calls[call_idx].call);
calls[call_idx].call = NULL;
return snapshot;