# std.Io.Threaded: fix resource leak in dirRealPathFilePosix · gitcafe/zig

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

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

Visibility: public

Requested revision: 0dbcf97551765d3abbaea5fb0b9e94e5e0be1b14

Requested commit: 0dbcf97551765d3abbaea5fb0b9e94e5e0be1b14

Commit: 0dbcf97551765d3abbaea5fb0b9e94e5e0be1b14

Tree: b98ef422ef235478ae678793905ef8e3f98d9e84

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Io.Threaded: fix resource leak in dirRealPathFilePosix

it should unconditionally close the opened file descriptor, not only on
error.

```

## Parents

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

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