kNeighbor mem leak
authorHarshitha <gplkrsh2@illinois.edu>
Mon, 5 Mar 2012 02:02:58 +0000 (20:02 -0600)
committerHarshitha <gplkrsh2@illinois.edu>
Mon, 5 Mar 2012 02:02:58 +0000 (20:02 -0600)
examples/charm++/load_balancing/kNeighbor/kNeighbor.C

index 3a4d28cb9c69fa32792fbc3a4b004339ca0c3bbf..a941c7d39b68f9a60b224fb459bf10b4a1cb2427 100644 (file)
@@ -247,7 +247,6 @@ class Block: public CBase_Block {
       p(sum);
       if(p.isUnpacking()) iterMsg = new toNeighborMsg *[numNeighbors];
       for(int i=0; i<numNeighbors; i++){
-       if(p.isUnpacking()) iterMsg[i] = new(curIterMsgSize/4, 0) toNeighborMsg(curIterMsgSize/4);
        CkPupMessage(p, (void **)&iterMsg[i]);
       }
     }