Merge pull request #2125 from jtattermusch/fix_win_read_memory_leak

prevent leaking gpr_slice in windows on_read()
pull/2126/head
Nicolas Noble 10 years ago
commit e0eac8b5be
  1. 2
      src/core/iomgr/tcp_windows.c

@ -154,7 +154,7 @@ static void on_read(void *tcpp, int from_iocp) {
status = GRPC_ENDPOINT_CB_ERROR;
} else {
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;
slice = ⊂
nslices = 1;

Loading…
Cancel
Save