mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-09 08:11:38 +08:00
Fix provenance memory leak
This commit is contained in:
parent
76ff749bf2
commit
979873f81d
@ -207,7 +207,7 @@ nc4_close_netcdf4_file(NC_FILE_INFO_T *h5, int abort, NC_memio* memio)
|
||||
/* Free the fileinfo struct, which holds info from the fileinfo
|
||||
* hidden attribute. */
|
||||
if (h5->provenance)
|
||||
free(h5->provenance);
|
||||
NC4_free_provenance(h5->provenance);
|
||||
|
||||
/* Close hdf file. It may not be open, since this function is also
|
||||
* called by NC_create() when a file opening is aborted. */
|
||||
|
Loading…
Reference in New Issue
Block a user