Removing memory leak in kNeighbor benchmark
authorHarshitha <gplkrsh2@illinois.edu>
Mon, 27 Feb 2012 18:02:37 +0000 (12:02 -0600)
committerHarshitha <gplkrsh2@illinois.edu>
Mon, 27 Feb 2012 18:02:37 +0000 (12:02 -0600)
examples/charm++/load_balancing/kNeighbor/kNeighbor.C

index 6a14a20757c1d280c4a09c51a3ab4a4812c69953..ac416d9f084e46bbb817e9257a7e8a9974a44b68 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]);
       }
     }