Typed Reductions example: Don't leak command line argument message
authorPhil Miller <mille121@illinois.edu>
Sun, 23 Oct 2011 23:43:09 +0000 (18:43 -0500)
committerPhil Miller <mille121@illinois.edu>
Sun, 23 Oct 2011 23:43:09 +0000 (18:43 -0500)
examples/charm++/typed_reduction/TypedReduction.cc

index 7fffd118a1c390e861cd04b859935c073766824d..3d102f5a7471abed98d5c9e28e528f145f2b381a 100644 (file)
@@ -8,6 +8,7 @@ Driver::Driver(CkArgMsg* args) {
     CkCallback *cb = new CkCallback(CkIndex_Driver::untyped_done(NULL), thisProxy);
     w.ckSetReductionClient(cb);
     w.reduce();
+    delete args;
 }
 
 void Driver::untyped_done(CkReductionMsg* m) {