Merge pull request #11315 from ncteisen/nit

Remove uneeded ref/unref
pull/11324/head
Noah Eisen 8 years ago committed by GitHub
commit e5f99b5873
  1. 3
      src/core/lib/http/httpcli.c

@ -105,7 +105,7 @@ static void finish(grpc_exec_ctx *exec_ctx, internal_request *req,
grpc_error *error) {
grpc_polling_entity_del_from_pollset_set(exec_ctx, req->pollent,
req->context->pollset_set);
grpc_closure_sched(exec_ctx, req->on_done, GRPC_ERROR_REF(error));
grpc_closure_sched(exec_ctx, req->on_done, error);
grpc_http_parser_destroy(&req->parser);
if (req->addresses != NULL) {
grpc_resolved_addresses_destroy(req->addresses);
@ -120,7 +120,6 @@ static void finish(grpc_exec_ctx *exec_ctx, internal_request *req,
grpc_slice_buffer_destroy_internal(exec_ctx, &req->incoming);
grpc_slice_buffer_destroy_internal(exec_ctx, &req->outgoing);
GRPC_ERROR_UNREF(req->overall_error);
GRPC_ERROR_UNREF(error);
grpc_resource_quota_unref_internal(exec_ctx, req->resource_quota);
gpr_free(req);
}

Loading…
Cancel
Save