# debug: fix resource \(de\)allocation for MachO targets · gitcafe/zig

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

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

Visibility: public

Requested revision: 96c1314443bdf26442a2c9fdffa03f2afffbcb8e

Requested commit: 96c1314443bdf26442a2c9fdffa03f2afffbcb8e

Commit: 96c1314443bdf26442a2c9fdffa03f2afffbcb8e

Tree: 2f6e3a0e7f5700d44a6def055d196d721c82c45d

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
debug: fix resource (de)allocation for MachO targets

With this change, it is now possible to safely call
`var di = std.debug.openSelfDebugInfo(gpa)`. Calling then
`di.deinit()` on the object will correctly free all allocated
resources.

```

## Parents

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

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