# Sema: fix double-free on compile errors · gitcafe/zig

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

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

Visibility: public

Requested revision: 56f2e5c5bc3267fa6c54d8fbc2295c5fa2a21571

Requested commit: 56f2e5c5bc3267fa6c54d8fbc2295c5fa2a21571

Commit: 56f2e5c5bc3267fa6c54d8fbc2295c5fa2a21571

Tree: afea9419eca940a548262a94dc5fd5138769854a

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Sema: fix double-free on compile errors

when instantiating a generic function and an error occurs in the
function prototype.

```

## Parents

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

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