# macho: create LlvmObject in createEmpty only · gitcafe/zig

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

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

Visibility: public

Requested revision: 42ed34d1f6a1f6487981749eb6c31deba198aa67

Requested commit: 42ed34d1f6a1f6487981749eb6c31deba198aa67

Commit: 42ed34d1f6a1f6487981749eb6c31deba198aa67

Tree: 2ea5bba0f82ba3c661f663af1101a8e4d08610c7

Author: Jakub Konka

Committer: Andrew Kelley

## Message

```
macho: create LlvmObject in createEmpty only

Prior to this change we would also create it in `openPath`, but as
`openPath` internally calls `createEmpty` we would end up with a
memory leak.

```

## Parents

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

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