# stage2: remove destroyed functions from maps · gitcafe/zig

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

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

Visibility: public

Requested revision: 933436dc52b9be0a3e5d81b014fba6df2124fe20

Requested commit: 933436dc52b9be0a3e5d81b014fba6df2124fe20

Commit: 933436dc52b9be0a3e5d81b014fba6df2124fe20

Tree: c28b511d22a08abf01abdb652d0d19a8c111eb86

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
stage2: remove destroyed functions from maps

This is likely the cause of the flaky test failures in master branch.
Since we have some test coverage for incremental compilation, it's not
OK to leave proper memory management of Fn objects as "TODO".

```

## Parents

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

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