mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-23 16:59:54 +08:00
Fix memory leak
This commit is contained in:
parent
bf593248b3
commit
8bbdee157f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user