mirror of
https://codeberg.org/ziglang/zig
synced 2026-11-18 07:05:05 +00:00
sema: Fix memory leak
When a generic call evaluates to a generic type, the call will be re-generated. However, the old function was not freed before being re-generated, causing a memory leak. So rather than only returning an error, we first free the old value.
This commit is contained in:
parent
9dc9219b2f
commit
79679be50d
1 changed files with 1 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue