# memory safety fix for Io.Writer.Allocating.toOwnedSlice\*\(\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 294db62d926ef82f2beb86e7e5ddf8d69092864a

Requested commit: 294db62d926ef82f2beb86e7e5ddf8d69092864a

Commit: 294db62d926ef82f2beb86e7e5ddf8d69092864a

Tree: 3d47be43b54702dbee00bb90ff247f027748b8a2

Author: Travis Staloch

Committer: Andrew Kelley

## Message

```
memory safety fix for Io.Writer.Allocating.toOwnedSlice*()

don't forget to save the list.  this allows a
`testing.checkAllAllocationFailures()` test to pass in one of my
projects which newly failed since #24329 was merged.

```

## Parents

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

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