Reverting incorrect fix
authorNikhil Jain <nikhil@illinois.edu>
Wed, 16 Nov 2011 17:11:53 +0000 (11:11 -0600)
committerNikhil Jain <nikhil@illinois.edu>
Wed, 16 Nov 2011 17:11:53 +0000 (11:11 -0600)
src/ck-core/ckreduction.C

index 358b5cd6943ddfa1db7f835118f63fc769612dd3..c09fea060a4402e12d737d3cb0e7bb70772f191e 100644 (file)
@@ -718,7 +718,6 @@ void CkReductionMgr::finishReduction(void)
     DEBR((AA"Message gcount is %d+%d+%d.\n"AB,result->gcount,gcount,adj(redNo).gcount));
     result->gcount+=gcount+adj(redNo).gcount;
     thisProxy[treeParent()].RecvMsg(result);
-    delete result;
   }
   else 
   {//We are root-- pass data to client
@@ -1999,7 +1998,6 @@ void CkNodeReductionMgr::finishReduction(void)
                */
                        result->gcount += additionalGCount;//if u have replaced some node add its gcount to ur count
            thisProxy[treeParent()].RecvMsg(result);
-      delete result;
        }
 
   }
@@ -2556,7 +2554,6 @@ void CkNodeReductionMgr::doneEvacuate(){
                        }
                        CkReductionMsg *result = reduceMessages();
                        thisProxy[treeParent()].RecvMsg(result);
-      delete result;
                        redNo++;
                }
                DEBR(("[%d] Asking parent %d to remove myself from list \n",CkMyNode(),treeParent()));