Skip to content
Snippets Groups Projects
Commit a4d9f267 authored by Jan Tattermusch's avatar Jan Tattermusch
Browse files

fix gpr_slice leak in server on connection reset

parent f209c587
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.
Please to comment