aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2017-08-14 14:55:02 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2017-08-14 14:55:02 -0700
commit97e1785d163e25ab928258df3305c10ea97a0542 (patch)
tree0fd5115b4bcdb5932be4103f918b9d7b2954759d
parent023bb45a2476e1a51e8c83b98be94740593ee6a5 (diff)
Added missing call to grpc_byte_buffer_reader_destroy()
-rw-r--r--src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c b/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c
index bb9217d843..087b4076e2 100644
--- a/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c
+++ b/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c
@@ -1544,6 +1544,7 @@ static void lb_on_response_received_locked(grpc_exec_ctx *exec_ctx, void *arg,
grpc_byte_buffer_reader bbr;
grpc_byte_buffer_reader_init(&bbr, glb_policy->lb_response_payload);
grpc_slice response_slice = grpc_byte_buffer_reader_readall(&bbr);
+ grpc_byte_buffer_reader_destroy(&bbr);
grpc_byte_buffer_destroy(glb_policy->lb_response_payload);
grpc_grpclb_initial_response *response = NULL;