Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
delete the process at the end of the main method
[simgrid.git] / examples / cxx / ping_pong / Sender.cxx
index 417bf73..d0518ba 100644 (file)
@@ -54,6 +54,8 @@ int Sender::main(int argc, char** argv)
        \r
        delete[] hostTable;\r
 \r
+       delete this;\r
+\r
        return 0;\r
     \r
 }
\ No newline at end of file