diff options
author | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-03-01 18:59:32 -0600 |
---|---|---|
committer | Erik Schnetter <schnetter@cct.lsu.edu> | 2008-03-01 18:59:32 -0600 |
commit | 389139c7779d82062d443ebaa56d5763d3629666 (patch) | |
tree | ba5cbe2bd07a03d17ad9820376a6a1be28dfd607 /Carpet/CarpetLib/src/commstate.hh | |
parent | 3e2aac9e9791759d5263d4edb59bcf8470f570ba (diff) |
CarpetLib: Correct memory leak in commstate class
Correct a memory leak and simplify the code in the commstate class by using
C++ datatypes instead of new and delete.
Add many assert statements to catch potential problems.
Diffstat (limited to 'Carpet/CarpetLib/src/commstate.hh')
-rw-r--r-- | Carpet/CarpetLib/src/commstate.hh | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Carpet/CarpetLib/src/commstate.hh b/Carpet/CarpetLib/src/commstate.hh index 8bc3d0869..8cc8d40b4 100644 --- a/Carpet/CarpetLib/src/commstate.hh +++ b/Carpet/CarpetLib/src/commstate.hh @@ -88,7 +88,6 @@ public: typebufdesc() : in_use(false), datatypesize(0), mpi_datatype(MPI_DATATYPE_NULL) { - procbufs.resize (dist::size()); } }; |