# macho: fix bug when freeing Decl · gitcafe/zig

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

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

Visibility: public

Requested revision: d0edd37f690c3e6cf3f8a7fc7a27016ba9b010ce

Requested commit: d0edd37f690c3e6cf3f8a7fc7a27016ba9b010ce

Commit: d0edd37f690c3e6cf3f8a7fc7a27016ba9b010ce

Tree: 5345caa7297fd77d9c3d1f36fd205d4c0970cfbb

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
macho: fix bug when freeing Decl

Take into account that an already freed Decl will no longer be
available as `decl.link.macho` causing a potential "inactive union field"
panic.

```

## Parents

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

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