# stage2: fix double-free when error reading cached ZIR · gitcafe/zig

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

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

Visibility: public

Requested revision: ca974de5217dbb7a638bd711df18fe9148383d3c

Requested commit: ca974de5217dbb7a638bd711df18fe9148383d3c

Commit: ca974de5217dbb7a638bd711df18fe9148383d3c

Tree: 9b58e10d48b83c7580d21c4aa9f9959a4e63cee1

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: fix double-free when error reading cached ZIR

We already had a `keep_zir` flag. No need to call deinit manually.

```

## Parents

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

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