# docgen: remove unnecessary and incorrect deallocations · gitcafe/zig

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

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

Visibility: public

Requested revision: c5351a8d496edd7d76b3fc505f3e078b9e00982e

Requested commit: c5351a8d496edd7d76b3fc505f3e078b9e00982e

Commit: c5351a8d496edd7d76b3fc505f3e078b9e00982e

Tree: d5645ad7972bb117aa6490143da69a7203e85ceb

Author: Manlio Perillo

Committer: Manlio Perillo

## Message

```
docgen: remove unnecessary and incorrect deallocations

The deallocations of the process arguments are unnecessary, since the
memory will be deallocated by arena.deinit().

The deallocations are incorrect, since ArgIterator.next() returns a
slice pointing to the iterator's internal buffer, that should be
deallocated with args_it.deinit().

```

## Parents

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

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