mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-01-24 16:04:40 +08:00
Fix comment, small memory leak
This commit is contained in:
parent
cd64d27552
commit
72c3e5809a
@ -464,7 +464,7 @@ nc4_find_type(const NC_HDF5_FILE_INFO_T *h5, nc_type typeid, NC_TYPE_INFO_T **ty
|
||||
}
|
||||
|
||||
/* Find the actual length of a dim by checking the length of that dim
|
||||
* in all variables that use it, in grp or children. *len must be
|
||||
* in all variables that use it, in grp or children. **len must be
|
||||
* initialized to zero before this function is called. */
|
||||
int
|
||||
nc4_find_dim_len(NC_GRP_INFO_T *grp, int dimid, size_t **len)
|
||||
|
@ -6,6 +6,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
@ -205,6 +206,7 @@ main(
|
||||
derror("Invalid format, try classic, 64-bit offset, netCDF-4, or netCDF-4 classic model");
|
||||
return 2;
|
||||
}
|
||||
free(kind_name);
|
||||
}
|
||||
break;
|
||||
case '?':
|
||||
|
Loading…
Reference in New Issue
Block a user