# dwarf: clean up allocations in std.dwarf module · gitcafe/zig

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

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

Visibility: public

Requested revision: 26153ce73a1b9c49bdf89055b8ab7f4d3173f153

Requested commit: 26153ce73a1b9c49bdf89055b8ab7f4d3173f153

Commit: 26153ce73a1b9c49bdf89055b8ab7f4d3173f153

Tree: cae4284d09b99171caf060e1c0504ee53e4ec890

Author: Jakub Konka

Committer: Jakub Konka

## Message

```
dwarf: clean up allocations in std.dwarf module

While this code probably could do with some love and a redesign,
this commit fixes the allocations by making sure we explicitly
pass an allocator where required, and we use arenas for temporary
or narrowly-scoped objects such as a `Die` (for `Die` in particular,
not every `FormValue` will be allocated - we could duplicate, or
we can use an arena which is the proposal of this commit).

```

## Parents

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

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