# Make CacheHash cleanup consistent \(always call \`release\`\) · gitcafe/zig

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

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

Visibility: public

Requested revision: d457919ff56d9b2044cb9064dd12a32481b656bf

Requested commit: d457919ff56d9b2044cb9064dd12a32481b656bf

Commit: d457919ff56d9b2044cb9064dd12a32481b656bf

Tree: 7c81a76b44dc67501e20c5c631f79b8500ab09c6

Author: LeRoyce Pearson

Committer: Andrew Kelley

## Message

```
Make CacheHash cleanup consistent (always call `release`)

Instead of releasing the manifest file when an error occurs, it is
only released when when `CacheHash.release` is called. This maps better
to what a zig user expects when they do `defer cache_hash.release()`.

```

## Parents

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

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