# macho: do not leave file descriptors open if unused · gitcafe/zig

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

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

Visibility: public

Requested revision: 4a98385b0aa3808ab05a1ebfbc90fd0bcd97c0d9

Requested commit: 4a98385b0aa3808ab05a1ebfbc90fd0bcd97c0d9

Commit: 4a98385b0aa3808ab05a1ebfbc90fd0bcd97c0d9

Tree: b56c8c5ade284425e275733a963dc636ece63a55

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: do not leave file descriptors open if unused

This manifested in different `AccessDenied` errors on Windows when
trying to do an atomic file copying in the compiler/linker.

```

## Parents

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

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