Fix comment, small memory leak

This commit is contained in:
Russ Rew 2015-02-05 16:33:42 -07:00
parent cd64d27552
commit 72c3e5809a
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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 '?':