aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/commstate.hh
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@cct.lsu.edu>2008-03-01 18:59:32 -0600
committerErik Schnetter <schnetter@cct.lsu.edu>2008-03-01 18:59:32 -0600
commit389139c7779d82062d443ebaa56d5763d3629666 (patch)
treeba5cbe2bd07a03d17ad9820376a6a1be28dfd607 /Carpet/CarpetLib/src/commstate.hh
parent3e2aac9e9791759d5263d4edb59bcf8470f570ba (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.hh1
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());
}
};