Corrected a potential memory related error caused when a null pointer was free'd.
Corrected a potential memory related error caused when a null pointer was free'd.

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