From 4df31a60b872445f1bcd527cb00d0e6cba437759 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Fri, 30 Jan 2015 09:44:31 -0800 Subject: [PATCH] Free host, path strings --- src/core/surface/server.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/core/surface/server.c b/src/core/surface/server.c index b71c57d9bb1..7fe50ee9bb9 100644 --- a/src/core/surface/server.c +++ b/src/core/surface/server.c @@ -411,6 +411,13 @@ static void destroy_call_elem(grpc_call_element *elem) { } gpr_mu_unlock(&chand->server->mu); + if (calld->host) { + grpc_mdstr_unref(calld->host); + } + if (calld->path) { + grpc_mdstr_unref(calld->path); + } + if (calld->legacy) { gpr_free(calld->legacy->initial_metadata); gpr_free(calld->legacy);