[MOAB-dev] r3911 - MOAB/trunk/src/io
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Mon May 17 15:44:55 CDT 2010
Author: kraftche
Date: 2010-05-17 15:44:55 -0500 (Mon, 17 May 2010)
New Revision: 3911
Modified:
MOAB/trunk/src/io/ReadHDF5.cpp
Log:
don't try to free the same HDF5 property object multiple times
Modified: MOAB/trunk/src/io/ReadHDF5.cpp
===================================================================
--- MOAB/trunk/src/io/ReadHDF5.cpp 2010-05-17 16:59:42 UTC (rev 3910)
+++ MOAB/trunk/src/io/ReadHDF5.cpp 2010-05-17 20:44:55 UTC (rev 3911)
@@ -292,6 +292,7 @@
H5Pclose( indepIO );
if (collIO != indepIO)
H5Pclose( collIO );
+ collIO = indepIO = H5P_DEFAULT;
return error(MB_FAILURE);
}
#endif
@@ -342,6 +343,7 @@
H5Pclose( indepIO );
if (collIO != indepIO)
H5Pclose( collIO );
+ collIO = indepIO = H5P_DEFAULT;
mhdf_Status status;
mhdf_closeFile( filePtr, &status );
@@ -390,6 +392,7 @@
H5Pclose( collIO );
if (H5P_DEFAULT != indepIO)
H5Pclose( indepIO );
+ collIO = indepIO = H5P_DEFAULT;
return rval;
}
More information about the moab-dev
mailing list