# std.Io.net.HostName.connect: fix resource leaks · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/870a682cd84e49b2213dffd59c9848d7fd12b7a1)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 870a682cd84e49b2213dffd59c9848d7fd12b7a1

Requested commit: 870a682cd84e49b2213dffd59c9848d7fd12b7a1

Commit: 870a682cd84e49b2213dffd59c9848d7fd12b7a1

Tree: a49ad9b1e4fe1ff4a513925398b04893dfbc8a0c

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io.net.HostName.connect: fix resource leaks

Must free other succeeded connections that lost the race.

```

## Parents

- [426a377c7b6a64092ab0b45710dc428da60557a1](https://git.cafe/gitcafe/zig/commit/426a377c7b6a64092ab0b45710dc428da60557a1?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/870a682cd84e49b2213dffd59c9848d7fd12b7a1?format=markdown)
