aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-05-24 11:16:12 -0700
committerGravatar GitHub <noreply@github.com>2017-05-24 11:16:12 -0700
commit814d884770980f36a63de9081ba5469ba7eeaa92 (patch)
tree83f1891cbaa662d38c225bf439b31770501978d4 /src/core
parent9315e91ab0dd4ef34c3c954c87b634c6310637ca (diff)
parentd6466872c8ccf09fdc30a80ad86b78542069dd66 (diff)
Merge pull request #11285 from ctiller/refc
Refcounting fix
Diffstat (limited to 'src/core')
-rw-r--r--src/core/lib/http/httpcli.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/lib/http/httpcli.c b/src/core/lib/http/httpcli.c
index 0ac2c2ad52..f5588a9a76 100644
--- a/src/core/lib/http/httpcli.c
+++ b/src/core/lib/http/httpcli.c
@@ -120,6 +120,7 @@ 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);
}
@@ -244,7 +245,7 @@ static void next_address(grpc_exec_ctx *exec_ctx, internal_request *req,
static void on_resolved(grpc_exec_ctx *exec_ctx, void *arg, grpc_error *error) {
internal_request *req = arg;
if (error != GRPC_ERROR_NONE) {
- finish(exec_ctx, req, error);
+ finish(exec_ctx, req, GRPC_ERROR_REF(error));
return;
}
req->next_address = 0;