aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2016-10-27 16:50:57 -0700
committerGravatar Craig Tiller <ctiller@google.com>2016-10-27 16:50:57 -0700
commit7a4089769db7af2d75a6e09708896746a3cc08bd (patch)
tree1210042f97f4245f1b0f52ba7eaf06a39ccaeed4 /src
parent0f7eb30aecc279f439edbc8d12ea0da556865db1 (diff)
Fix memory leak
Diffstat (limited to 'src')
-rw-r--r--src/core/lib/surface/server.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/lib/surface/server.c b/src/core/lib/surface/server.c
index be16162e7f..3a90308058 100644
--- a/src/core/lib/surface/server.c
+++ b/src/core/lib/surface/server.c
@@ -842,6 +842,7 @@ static void accept_stream(grpc_exec_ctx *exec_ctx, void *cd,
grpc_call_stack_element(grpc_call_get_call_stack(call), 0);
if (error != GRPC_ERROR_NONE) {
got_initial_metadata(exec_ctx, elem, error);
+ GRPC_ERROR_UNREF(error);
return;
}
call_data *calld = elem->call_data;