Sema: fix double-free on compile errors

when instantiating a generic function and an error occurs in the
function prototype.
56f2e5c5bcAndrew Kelley committed on 7/13/2022, 1:38:11 AMparent2eaef84
1 file changedLine totals unavailable