Changing more deletes to delete []
authorSameer Kumar <skumar2@uiuc.edu>
Mon, 28 Mar 2005 19:15:48 +0000 (19:15 +0000)
committerSameer Kumar <skumar2@uiuc.edu>
Mon, 28 Mar 2005 19:15:48 +0000 (19:15 +0000)
src/ck-com/ComlibSectionInfo.C
src/ck-com/ComlibSectionInfo.h

index 0137c109c64c4112557b99de7cf83d10f88e8886..5df76f9fd6c1f30d7a782dd5e44feef0df5ee550 100644 (file)
@@ -117,7 +117,7 @@ void ComlibSectionInfo::getPeList(int _nElems,
     }   
 
     if(npes == 0) {
-        delete pelist;
+        delete [] pelist;
         pelist = NULL;
     }
 }
@@ -155,7 +155,7 @@ void ComlibSectionInfo::getRemotePelist(int nindices,
     }
     
     if(npes == 0) {
-        delete pelist;
+        delete [] pelist;
         pelist = NULL;
     }
 }
index ec8e1bece0518b42de9b25cbb058fe7275777bfa..daa1b52bb2daa8951bb3ef20df3feb713dcb08d1 100644 (file)
@@ -90,7 +90,7 @@ class ComlibSectionHashObject {
     }
 
     ~ComlibSectionHashObject() {
-        delete pelist;
+        delete [] pelist;
        //delete msg;
     }
 };