diff options
author | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2015-06-18 11:37:56 -0700 |
---|---|---|
committer | Nicolas Noble <nicolasnoble@users.noreply.github.com> | 2015-06-18 11:37:56 -0700 |
commit | e0eac8b5befa4d314277dc55484458ef92fb5f8c (patch) | |
tree | 2d83538ebbf80473139d295365700a70a8e9c241 /src | |
parent | 37a8448f0e19f13bf6cfc989c8935e923b25b5a6 (diff) | |
parent | b91009518dd02cdd0873f38fb4ddbfa3f1450c00 (diff) |
Merge pull request #2125 from jtattermusch/fix_win_read_memory_leak
prevent leaking gpr_slice in windows on_read()
Diffstat (limited to 'src')
-rw-r--r-- | src/core/iomgr/tcp_windows.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/iomgr/tcp_windows.c b/src/core/iomgr/tcp_windows.c index 12dac03080..15759c398a 100644 --- a/src/core/iomgr/tcp_windows.c +++ b/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; |