Merge pull request #13831 from dgquintas/fix_wrong_slice_unref

Fix wrong unreffing of slice
pull/13601/merge
David G. Quintas 7 years ago committed by GitHub
commit e7515e48f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/core/lib/iomgr/tcp_client_posix.cc

@ -228,7 +228,8 @@ finish:
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) {

Loading…
Cancel
Save