From 24e820b226e36b6a28b16a7e650106014360a44d Mon Sep 17 00:00:00 2001 From: Yang Gao Date: Mon, 2 Feb 2015 14:44:53 -0800 Subject: [PATCH 1/2] Fix a memory leak. --- src/core/httpcli/format_request.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/httpcli/format_request.c b/src/core/httpcli/format_request.c index 58bb7c740ea..5d1a04ef826 100644 --- a/src/core/httpcli/format_request.c +++ b/src/core/httpcli/format_request.c @@ -105,6 +105,8 @@ gpr_slice grpc_httpcli_format_post_request(const grpc_httpcli_request *request, } gpr_strvec_add(&out, gpr_strdup("\r\n")); tmp = gpr_strvec_flatten(&out, &out_len); + gpr_strvec_destroy(&out); + if (body_bytes) { tmp = gpr_realloc(tmp, out_len + body_size); memcpy(tmp + out_len, body_bytes, body_size); From a3b18d922af588f3fa64608b57d0a261196743f0 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Mon, 2 Feb 2015 14:48:13 -0800 Subject: [PATCH 2/2] Fix link error --- src/core/iomgr/wakeup_fd_eventfd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/iomgr/wakeup_fd_eventfd.c b/src/core/iomgr/wakeup_fd_eventfd.c index 3ee7f941285..99c32bb9db9 100644 --- a/src/core/iomgr/wakeup_fd_eventfd.c +++ b/src/core/iomgr/wakeup_fd_eventfd.c @@ -74,7 +74,7 @@ static int eventfd_check_availability(void) { return 1; } -const grpc_wakeup_fd_vtable specialized_wakeup_fd_vtable = { +const grpc_wakeup_fd_vtable grpc_specialized_wakeup_fd_vtable = { eventfd_create, eventfd_consume, eventfd_wakeup, eventfd_destroy, eventfd_check_availability };