commit | c41bbd3c33df25a25014e14fbeee4ced8f1433fa | [log] [tgz] |
---|---|---|
author | David Garcia Quintas <dgq@google.com> | Tue Dec 19 14:59:41 2017 -0800 |
committer | David Garcia Quintas <dgq@google.com> | Tue Dec 19 14:59:41 2017 -0800 |
tree | 30b6d245898a53328ecc64a36199e73c8d8e3df5 | |
parent | 0dd982cf4c409d072f2b1c537d65f93001cc0f77 [diff] [blame] |
Fix wrong unreffing of slice
diff --git a/src/core/lib/iomgr/tcp_client_posix.cc b/src/core/lib/iomgr/tcp_client_posix.cc index 40ba162..8cd5f8d 100644 --- a/src/core/lib/iomgr/tcp_client_posix.cc +++ b/src/core/lib/iomgr/tcp_client_posix.cc
@@ -228,7 +228,8 @@ gpr_free(error_descr); gpr_free(desc); error = grpc_error_set_str(error, GRPC_ERROR_STR_TARGET_ADDRESS, - addr_str_slice); + addr_str_slice /* takes ownership */); + } else { grpc_slice_unref(addr_str_slice); } if (done) {