mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-30 16:10:44 +08:00
Corrected a double-free reported by static analysis.
This commit is contained in:
parent
08c51e6064
commit
8a4f5aea95
@ -172,6 +172,7 @@ NC4_put_propattr(NC_HDF5_FILE_INFO_T* h5)
|
||||
done:
|
||||
if(text != NULL) {
|
||||
free(text);
|
||||
text = NULL;
|
||||
}
|
||||
|
||||
if(attid >= 0) HCHECK((H5Aclose(attid)));
|
||||
|
Loading…
Reference in New Issue
Block a user