Skip to content
Snippets Groups Projects
Commit 4f5e6f01 authored by Craig Tiller's avatar Craig Tiller
Browse files

Merge pull request #3063 from jtattermusch/windows_server_memory_leak

Fix gpr_slice leak in server on connection reset
parents f3552725 a4d9f267
No related branches found
No related tags found
No related merge requests found
...@@ -152,6 +152,7 @@ static void on_read(void *tcpp, int from_iocp) { ...@@ -152,6 +152,7 @@ static void on_read(void *tcpp, int from_iocp) {
gpr_log(GPR_ERROR, "ReadFile overlapped error: %s", utf8_message); gpr_log(GPR_ERROR, "ReadFile overlapped error: %s", utf8_message);
gpr_free(utf8_message); gpr_free(utf8_message);
} }
gpr_slice_unref(tcp->read_slice);
status = GRPC_ENDPOINT_CB_ERROR; status = GRPC_ENDPOINT_CB_ERROR;
} else { } else {
if (info->bytes_transfered != 0) { if (info->bytes_transfered != 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment