diff options
author | 2017-07-07 14:44:56 -0700 | |
---|---|---|
committer | 2017-07-10 10:07:07 -0700 | |
commit | cd4508f944c596bea79f1f19fab761272703c5e4 (patch) | |
tree | 95b5117242d9f1471e75bc13c97166e537b66643 /src/core/lib/iomgr/tcp_uv.c | |
parent | 4e014a241011356c8c03c45c86b88bf5f012d8d1 (diff) |
Fix some memory leaks in UV TCP code
Diffstat (limited to 'src/core/lib/iomgr/tcp_uv.c')
-rw-r--r-- | src/core/lib/iomgr/tcp_uv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/tcp_uv.c b/src/core/lib/iomgr/tcp_uv.c index 213952d5ec..ff5fd3edc8 100644 --- a/src/core/lib/iomgr/tcp_uv.c +++ b/src/core/lib/iomgr/tcp_uv.c @@ -67,6 +67,8 @@ typedef struct { static void tcp_free(grpc_exec_ctx *exec_ctx, grpc_tcp *tcp) { grpc_slice_unref_internal(exec_ctx, tcp->read_slice); grpc_resource_user_unref(exec_ctx, tcp->resource_user); + gpr_free(tcp->handle); + gpr_free(tcp->peer_string); gpr_free(tcp); } |