Fix memory leak

This commit is contained in:
Dennis Heimbigner 2021-10-12 14:20:37 -06:00
parent bf593248b3
commit 8bbdee157f

View File

@ -571,6 +571,7 @@ findeconstenum(Symbol* avsym, NCConstant* con)
enumt = candidate;
done:
if(enumt) econst = locateeconst(enumt,name);
listfree(typdefs);
nullfree(path);
if(econst == NULL)
semerror(con->lineno,"Undefined enum constant: %s",refsym->name);