delete m before using it, a surprisingly 7-year old bug.
authorGengbin Zheng <gzheng@illinois.edu>
Sun, 21 Aug 2011 13:36:59 +0000 (08:36 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Sun, 21 Aug 2011 13:36:59 +0000 (08:36 -0500)
tests/charm++/pingpong/pingpong.C

index 8994d23285ea09d731d510b4b12db60228141f1e..1460ea002b2ad257fd9635cb8ee981feb3ecd083 100644 (file)
@@ -76,7 +76,6 @@ public:
   main(CkMigrateMessage *m) {}
   main(CkArgMsg* m)
   {
-    delete m;
     if(CkNumPes()>2) {
       CkAbort("Run this program on 1 or 2 processors only.\n");
     }
@@ -111,6 +110,7 @@ public:
     arrF.doneInserting();
     phase=0;
     mainProxy.maindone();
+    delete m;
   };
 
   void maindone(void)