Fixed a handful of potential memory leaks reported by clang static analysis.
Fixed a handful of potential memory leaks reported by clang static analysis.

Unidata/netcdf-c,Unidata/netcdf-c,Unidata/netcdf-c,Unidata/netcdf-c