Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Replace some malloc/free by C++ new/delete.
[simgrid.git] / src / msg / msg_private.hpp
index b30226e..c1affe1 100644 (file)
@@ -28,11 +28,7 @@ public:
 /********************************* Task **************************************/
 
 struct s_simdata_task_t {
-  ~s_simdata_task_t()
-  {
-    /* parallel tasks only */
-    xbt_free(this->host_list);
-  }
+  ~s_simdata_task_t() { delete[] this->host_list; /* parallel tasks only */ }
   void setUsed();
   void setNotUsed() { this->isused = false; }