Skip to content
Snippets Groups Projects
Commit e0eac8b5 authored by Nicolas Noble's avatar Nicolas Noble
Browse files

Merge pull request #2125 from jtattermusch/fix_win_read_memory_leak

prevent leaking gpr_slice in windows on_read()
parents 37a8448f b9100951
No related branches found
No related tags found
No related merge requests found
...@@ -154,7 +154,7 @@ static void on_read(void *tcpp, int from_iocp) { ...@@ -154,7 +154,7 @@ static void on_read(void *tcpp, int from_iocp) {
status = GRPC_ENDPOINT_CB_ERROR; status = GRPC_ENDPOINT_CB_ERROR;
} else { } else {
if (info->bytes_transfered != 0) { if (info->bytes_transfered != 0) {
sub = gpr_slice_sub(tcp->read_slice, 0, info->bytes_transfered); sub = gpr_slice_sub_no_ref(tcp->read_slice, 0, info->bytes_transfered);
status = GRPC_ENDPOINT_CB_OK; status = GRPC_ENDPOINT_CB_OK;
slice = ⊂ slice = ⊂
nslices = 1; nslices = 1;
......
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