From a4d9f267fbd0977c58ed21aad3984d0dbc64fcb3 Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Tue, 25 Aug 2015 12:59:21 -0700 Subject: [PATCH] fix gpr_slice leak in server on connection reset --- src/core/iomgr/tcp_windows.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/iomgr/tcp_windows.c b/src/core/iomgr/tcp_windows.c index 123f46d71d4..901793ec43b 100644 --- a/src/core/iomgr/tcp_windows.c +++ b/src/core/iomgr/tcp_windows.c @@ -152,6 +152,7 @@ static void on_read(void *tcpp, int from_iocp) { gpr_log(GPR_ERROR, "ReadFile overlapped error: %s", utf8_message); gpr_free(utf8_message); } + gpr_slice_unref(tcp->read_slice); status = GRPC_ENDPOINT_CB_ERROR; } else { if (info->bytes_transfered != 0) {