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.
79679be50dLuuk de Gram committed on 3/18/2022, 1:20:03 AM· committed by Andrew Kelleyparent9dc9219
1 file changedLine totals unavailable