aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/lib/iomgr/error.c')
-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