diff options
author | Craig Tiller <ctiller@google.com> | 2015-07-01 10:03:50 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2015-07-01 10:03:50 -0700 |
commit | 740aac1a4bb10d58cf7ca411e5a1205e5b0f339f (patch) | |
tree | c26d028ca6aebf7e305ee983abbd23662f1562bf /src | |
parent | b9a46ae5d7044c6b436a33341135ead3f6fd7779 (diff) |
Fix an lb_policy leak
Diffstat (limited to 'src')
-rw-r--r-- | src/core/client_config/lb_policies/pick_first.c | 1 | ||||
-rw-r--r-- | src/core/surface/call.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/src/core/client_config/lb_policies/pick_first.c b/src/core/client_config/lb_policies/pick_first.c index 3967350a9b..ec2a45a572 100644 --- a/src/core/client_config/lb_policies/pick_first.c +++ b/src/core/client_config/lb_policies/pick_first.c @@ -192,6 +192,7 @@ loop: grpc_iomgr_add_delayed_callback(pp->on_complete, 1); gpr_free(pp); } + unref = 1; } else { p->checking_subchannel %= p->num_subchannels; p->checking_connectivity = grpc_subchannel_check_connectivity( diff --git a/src/core/surface/call.h b/src/core/surface/call.h index 8fa411048b..fb3662b50d 100644 --- a/src/core/surface/call.h +++ b/src/core/surface/call.h @@ -94,8 +94,6 @@ grpc_call *grpc_call_create(grpc_channel *channel, grpc_completion_queue *cq, void grpc_call_set_completion_queue(grpc_call *call, grpc_completion_queue *cq); grpc_completion_queue *grpc_call_get_completion_queue(grpc_call *call); -#define GRPC_CALL_REF_COUNT_DEBUG - #ifdef GRPC_CALL_REF_COUNT_DEBUG void grpc_call_internal_ref(grpc_call *call, const char *reason); void grpc_call_internal_unref(grpc_call *call, const char *reason, |