Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
delete the process at the end of the main method
[simgrid.git] / examples / cxx / basic / Forwarder.cxx
index 1fa5c2d..d5fcdec 100644 (file)
@@ -65,6 +65,8 @@ int Forwarder::main(int argc, char** argv)
        cout <<"[" << getName() << ":" << getHost().getName() << "] " << "I'm done. See you!" << endl;\r
        \r
        delete[] slaves;\r
+\r
+       delete this;\r
       \r
        return 0;\r
 }
\ No newline at end of file