# std.Io.Group: fix leak when wait is canceled · gitcafe/zig

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

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

Visibility: public

Requested revision: c8739d6953b62de30827a484f94cc8add8c22dd9

Requested commit: c8739d6953b62de30827a484f94cc8add8c22dd9

Commit: c8739d6953b62de30827a484f94cc8add8c22dd9

Tree: be92e03a9a750e37f018c54ae3946c7b3cb888c3

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io.Group: fix leak when wait is canceled

Only when the operation succeeds should the token field be set to null.

```

## Parents

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

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