# std: clean up GeneralPurposeAllocator memset code · gitcafe/zig

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

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

Visibility: public

Requested revision: 973e6c978cedacc9aab86999ab67e5066fc1db1d

Requested commit: 973e6c978cedacc9aab86999ab67e5066fc1db1d

Commit: 973e6c978cedacc9aab86999ab67e5066fc1db1d

Tree: 9b3e1226a99387083229c449457a4fc3216a3e4c

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std: clean up GeneralPurposeAllocator memset code

The freeSlot function was only called once so I inlined the logic and
utilized some of the other locals that were in scope.

```

## Parents

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

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