0
Fork 0
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:
Luuk de Gram 2022-03-17 21:20:00 +01:00 • committed by Andrew Kelley
commit 79679be50d