[MOAB-dev] r5698 - in MOAB/branches/mcm_kwfixes: itaps/imesh src tools

mcmiller at mcs.anl.gov mcmiller at mcs.anl.gov
Wed Aug 15 11:08:31 CDT 2012


Author: mcmiller
Date: 2012-08-15 11:08:31 -0500 (Wed, 15 Aug 2012)
New Revision: 5698

Modified:
   MOAB/branches/mcm_kwfixes/itaps/imesh/MOAB_iMesh_unit_tests.cpp
   MOAB/branches/mcm_kwfixes/itaps/imesh/testc_cbind.cpp
   MOAB/branches/mcm_kwfixes/src/FBEngine.cpp
   MOAB/branches/mcm_kwfixes/src/GeomTopoTool.cpp
   MOAB/branches/mcm_kwfixes/tools/mbmem.cpp
Log:
fixing some more KW issues

Modified: MOAB/branches/mcm_kwfixes/itaps/imesh/MOAB_iMesh_unit_tests.cpp
===================================================================
--- MOAB/branches/mcm_kwfixes/itaps/imesh/MOAB_iMesh_unit_tests.cpp	2012-08-15 16:01:25 UTC (rev 5697)
+++ MOAB/branches/mcm_kwfixes/itaps/imesh/MOAB_iMesh_unit_tests.cpp	2012-08-15 16:08:31 UTC (rev 5698)
@@ -383,6 +383,7 @@
   CHECK_EQUAL( 0, adj_size );
   CHECK_EQUAL( 1, off_size );
   CHECK( off_alloc >= 1 );
+  CHECK( 0 != off );
   CHECK_EQUAL( 0, off[0] );  
   
   free(off);

Modified: MOAB/branches/mcm_kwfixes/itaps/imesh/testc_cbind.cpp
===================================================================
--- MOAB/branches/mcm_kwfixes/itaps/imesh/testc_cbind.cpp	2012-08-15 16:01:25 UTC (rev 5697)
+++ MOAB/branches/mcm_kwfixes/itaps/imesh/testc_cbind.cpp	2012-08-15 16:08:31 UTC (rev 5698)
@@ -247,12 +247,14 @@
                           &topologies, &topologies_alloc, &topologies_size, &result);
       if (iBase_SUCCESS != result) {
         printf("Failed to get topologies in adjacencies_test.\n");
+        if (entities) free(entities);
         return FALSE;
       }  
 
       if (topologies_size != entities_size) {
         printf("Didn't get the right number of topologies "
                "in topology_adjacency_test.\n");
+        if (entities) free(entities);
         return FALSE;
       }
     
@@ -319,6 +321,8 @@
       if (num_region+1 != face_offsets_size) {
         printf("Number of offsets didn't agree with number of "
                "regions in topology_adjacency_test.\n");
+        if (adj_faces) free(adj_faces);
+        if (face_offsets) free(face_offsets);
         return FALSE;
       }
 
@@ -360,11 +364,17 @@
                          &region_offsets_size, &result);
       if (iBase_SUCCESS != result) {
         printf("Failed to get regions from faces in adjacencies_test.\n");
+        if (adj_faces) free(adj_faces);
+        if (face_offsets) free(face_offsets);
         return FALSE;
       }
 
       if (adj_faces_size+1 != region_offsets_size) {


More information about the moab-dev mailing list