[MOAB-dev] r4113 - MOAB/trunk/src/io

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Tue Aug 31 11:14:07 CDT 2010


Author: kraftche
Date: 2010-08-31 11:14:06 -0500 (Tue, 31 Aug 2010)
New Revision: 4113

Modified:
   MOAB/trunk/src/io/ReadHDF5Dataset.cpp
Log:
fix resource leak in currently unused code path

Modified: MOAB/trunk/src/io/ReadHDF5Dataset.cpp
===================================================================
--- MOAB/trunk/src/io/ReadHDF5Dataset.cpp	2010-08-31 14:09:02 UTC (rev 4112)
+++ MOAB/trunk/src/io/ReadHDF5Dataset.cpp	2010-08-31 16:14:06 UTC (rev 4113)
@@ -473,6 +473,8 @@
   err = H5Dread( dataSet, dataType, mem_id, dataSpace, ioProp, 0 );
   if (err < 0)
     throw Exception(__LINE__);
+    
+  H5Sclose( mem_id );
 }
 
 } // namespace moab








































More information about the moab-dev mailing list