xlat: Delete msgs destined for reductiontarget entry methods after use
[charm.git] / 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";
       }
   }