Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
explain to the users what's going on here
[simgrid.git] / examples / s4u / io-file-system / s4u-io-file-system.cpp
index 8257069..c676b07 100644 (file)
@@ -84,7 +84,7 @@ public:
     file = new simgrid::s4u::File("/home/tmp/simgrid.readme", nullptr);
     XBT_INFO("Unlink file: '%s'", file->getPath());
     file->unlink();
-    delete file;
+    delete file; // Unlinking the file on "disk" does not free the object
 
     show_info(mounts);
   }