aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-03-10 08:35:26 -0800
committerGravatar Craig Tiller <ctiller@google.com>2017-03-10 08:35:26 -0800
commitea264b88f62b0778cd360375f2404af439a07291 (patch)
tree79d3657ae58c44ac4cb644b668a44c042ec9002c /src
parent833adc20285f4f30d09b9c2a6092ef2c6a5e649f (diff)
Ensure GRPC_TIMER_END gets called
Not calling this breaks our latency tracing/analysis code
Diffstat (limited to 'src')
-rw-r--r--src/core/lib/iomgr/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/error.c b/src/core/lib/iomgr/error.c
index 6c4d0157c2..cbaf9a4214 100644
--- a/src/core/lib/iomgr/error.c
+++ b/src/core/lib/iomgr/error.c
@@ -263,7 +263,7 @@ static grpc_error *copy_error_and_unref(grpc_error *in) {
else
out = GRPC_ERROR_CREATE("unknown");
} else if (gpr_ref_is_unique(&in->refs)) {
- return in;
+ out = in;
} else {
out = gpr_malloc(sizeof(*out));
#ifdef GRPC_ERROR_REFCOUNT_DEBUG