xlat: Delete msgs destined for reductiontarget entry methods after use
authorRamprasad Venkataraman <ramv@illinois.edu>
Thu, 20 Oct 2011 01:07:44 +0000 (20:07 -0500)
committerRamprasad Venkataraman <ramv@illinois.edu>
Fri, 21 Oct 2011 16:27:49 +0000 (11:27 -0500)
src/xlat-i/xi-symbol.C

index 3a1fbc170aa73dac5080c441acdf55214fce3869..a583ec51377ddd652611691996caad3a08fd8a32 100644 (file)
@@ -4524,7 +4524,7 @@ void Entry::genDefs(XStr& str)
               << "  char* impl_buf = (char*)((CkReductionMsg*)impl_msg)->getData();\n";
           XStr precall;
           genCall(str, precall, true);
-          str << "\n}\n\n";
+          str << "  delete (CkReductionMsg*)impl_msg;\n}\n\n";
       }
   }