diff options
author | Craig Tiller <ctiller@google.com> | 2016-09-23 09:43:32 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-09-23 09:43:32 -0700 |
commit | e34c285ac94892cb21bd6fa50d4ecdc49e85cd85 (patch) | |
tree | 6088b988189b944f65b18105da14d8cb0a81eaf5 /src/core/lib/security/credentials/google_default | |
parent | 9cf0cec74c81e122864a0a11109c787fe8b452cd (diff) |
Buffer pool integration progress
Diffstat (limited to 'src/core/lib/security/credentials/google_default')
-rw-r--r-- | src/core/lib/security/credentials/google_default/google_default_credentials.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/lib/security/credentials/google_default/google_default_credentials.c b/src/core/lib/security/credentials/google_default/google_default_credentials.c index 312a3d4f90..3bcde3da8b 100644 --- a/src/core/lib/security/credentials/google_default/google_default_credentials.c +++ b/src/core/lib/security/credentials/google_default/google_default_credentials.c @@ -124,11 +124,13 @@ static int is_stack_running_on_compute_engine(void) { grpc_httpcli_context_init(&context); + grpc_buffer_pool *buffer_pool = grpc_buffer_pool_create(); grpc_httpcli_get( - &exec_ctx, &context, &detector.pollent, &request, + &exec_ctx, &context, &detector.pollent, buffer_pool, &request, gpr_time_add(gpr_now(GPR_CLOCK_REALTIME), max_detection_delay), grpc_closure_create(on_compute_engine_detection_http_response, &detector), &detector.response); + grpc_buffer_pool_internal_unref(&exec_ctx, buffer_pool); grpc_exec_ctx_flush(&exec_ctx); |