Fixed memory leak inside ComlibStrategy/OneTimeMulticastStrategy. The message would
authorEdgar Solomonik <solomon2@illinois.edu>
Sat, 14 Nov 2009 00:17:15 +0000 (00:17 +0000)
committerEdgar Solomonik <solomon2@illinois.edu>
Sat, 14 Nov 2009 00:17:15 +0000 (00:17 +0000)
not get deleted in the case when it had no local nodes to deliver to.

src/ck-com/ComlibStrategy.C

index 05179809b55cbec36c380fd7a5ec881286fc309a..86fada3b51f2289cb1584174a36a9e693cc87f1f 100644 (file)
@@ -76,6 +76,8 @@ int CharmStrategy::deliverToIndices(void *msg, int numDestIdxs, const CkArrayInd
     }
     
   }
+  else
+    CkFreeMsg(msg);
 
   return count;
 }