Corrected a double-free reported by static analysis.

This commit is contained in:
Ward Fisher 2017-06-15 12:09:54 -06:00
parent 08c51e6064
commit 8a4f5aea95

View File

@ -172,6 +172,7 @@ NC4_put_propattr(NC_HDF5_FILE_INFO_T* h5)
done:
if(text != NULL) {
free(text);
text = NULL;
}
if(attid >= 0) HCHECK((H5Aclose(attid)));