[MOAB-dev] r4986 - MOAB/trunk/tools

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Fri Jun 10 09:25:48 CDT 2011


Author: kraftche
Date: 2011-06-10 09:25:47 -0500 (Fri, 10 Jun 2011)
New Revision: 4986

Modified:
   MOAB/trunk/tools/convert.cpp
Log:
Free Core instance before exiting mbconvert.  The only user-visible affect of this is that exiting might be a little bit slower, but it allows mbconvert to be used to diagnose memory leaks

Modified: MOAB/trunk/tools/convert.cpp
===================================================================
--- MOAB/trunk/tools/convert.cpp	2011-06-09 21:56:27 UTC (rev 4985)
+++ MOAB/trunk/tools/convert.cpp	2011-06-10 14:25:47 UTC (rev 4986)
@@ -140,13 +140,11 @@
   MPI_Comm_rank( MPI_COMM_WORLD, &proc_id );
 #endif
 
-
-  Interface* gMB;
+  Core core;
+  Interface* gMB = &core;
   ErrorCode result;
   Range range;
 
-  gMB = new Core();
-
   bool append_rank = false;
   bool percent_rank_subst = false;      
   int i, dim;

































More information about the moab-dev mailing list