mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-12 15:45:21 +08:00
This commit is contained in:
parent
6504c2b093
commit
cb10672d0d
@ -1780,7 +1780,9 @@ ncio_px_close(ncio *nciop, int doUnlink)
|
||||
if(nciop == NULL)
|
||||
return EINVAL;
|
||||
status = nciop->sync(nciop);
|
||||
(void) close(nciop->fd);
|
||||
if(nciop->fd > 0) {
|
||||
(void) close(nciop->fd);
|
||||
}
|
||||
if(doUnlink)
|
||||
(void) unlink(nciop->path);
|
||||
ncio_px_free(nciop);
|
||||
|
Loading…
Reference in New Issue
Block a user