[MOAB-dev] commit/MOAB: danwu: Fix memory leaks for some files in tools folder.
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Sep 23 16:32:28 CDT 2013
1 new commit in MOAB:
https://bitbucket.org/fathomteam/moab/commits/ab3dec4d57ca/
Changeset: ab3dec4d57ca
Branch: master
User: danwu
Date: 2013-09-23 23:32:17
Summary: Fix memory leaks for some files in tools folder.
Affected #: 3 files
diff --git a/tools/mbcslam/Intx2MeshInPlane.cpp b/tools/mbcslam/Intx2MeshInPlane.cpp
index 496903a..9fb2a94 100644
--- a/tools/mbcslam/Intx2MeshInPlane.cpp
+++ b/tools/mbcslam/Intx2MeshInPlane.cpp
@@ -318,6 +318,7 @@ int Intx2MeshInPlane::findNodes(EntityHandle red, int nsRed, EntityHandle blue,
}
std::cout << " a point pp is not on a red polygon " << *pp << " " << pp[1]
<< " red polygon " << mb->id_from_handle(red) << " \n";
+ delete[] foundIds;
return 1;
}
}
diff --git a/tools/mbcslam/Intx2MeshOnSphere.cpp b/tools/mbcslam/Intx2MeshOnSphere.cpp
index 0952ef6..4ec7bcc 100644
--- a/tools/mbcslam/Intx2MeshOnSphere.cpp
+++ b/tools/mbcslam/Intx2MeshOnSphere.cpp
@@ -320,6 +320,7 @@ int Intx2MeshOnSphere::findNodes(EntityHandle red, int nsRed, EntityHandle blue,
}
std::cout << " a point pp is not on a red quad " << *pp << " " << pp[1]
<< " red quad " << mb->id_from_handle(red) << " \n";
+ delete[] foundIds;
return 1;
}
}
diff --git a/tools/mbzoltan/MBZoltan.cpp b/tools/mbzoltan/MBZoltan.cpp
index f1b712c..d07ffcf 100644
--- a/tools/mbzoltan/MBZoltan.cpp
+++ b/tools/mbzoltan/MBZoltan.cpp
@@ -1159,6 +1159,9 @@ ErrorCode MBZoltan::partition_round_robin(const int n_part)
} // for (j = 0; j < n_child; j++)
} // for (i = 0; i < n_entity; i++)
+ delete[] loads;
+ delete[] ve_loads;
+
return MB_SUCCESS;
}
Repository URL: https://bitbucket.org/fathomteam/moab/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the moab-dev
mailing list