mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-05 16:20:10 +08:00
Fixed clang-reported issue: memory leak.
This commit is contained in:
parent
d94af8cc89
commit
01598ae610
@ -130,6 +130,8 @@ ncaux_add_field(void* tag, const char *name, nc_type field_type,
|
||||
cmpd->nfields++;
|
||||
|
||||
done:
|
||||
if(newfields)
|
||||
free(newfields);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user