# fetch: use arena allocator for diagnostic/UnpackResult · gitcafe/zig

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

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

Visibility: public

Requested revision: 4151e6c31b50ffaab0c9b68106f7903c3d99c810

Requested commit: 4151e6c31b50ffaab0c9b68106f7903c3d99c810

Commit: 4151e6c31b50ffaab0c9b68106f7903c3d99c810

Tree: a93c7b4b946a3e3508ebfc3938a97dea16886d46

Author: Igor Anić

Committer: Igor Anić

## Message

```
fetch: use arena allocator for diagnostic/UnpackResult

Reference:
https://github.com/ziglang/zig/pull/19500#discussion_r1556476973

Arena is now used for Diagnostic (tar and git). `deinit` is not called on Diagnostic
allowing us to reference strings from Diagnostic in UnpackResult without
dupe.

That seamed reasonable to me. Instead of using gpa for Diagnostic, and
then dupe to arena. Or using arena for both and making dupe so we can deinit
Diagnostic.

```

## Parents

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

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