Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix memleak.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 27 Jan 2019 17:33:57 +0000 (18:33 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 27 Jan 2019 21:29:57 +0000 (22:29 +0100)
The comment seems to be invalidated by commit 4f2d08b0ae4625d32890dc4613e1d842ad0f7b77
"Sanitize the API of this_actor::parallel_execute()"

src/msg/msg_private.hpp

index 4905c67..5e0c177 100644 (file)
@@ -18,8 +18,9 @@ struct s_simdata_task_t {
   ~s_simdata_task_t()
   {
     /* parallel tasks only */
-    delete[] this->host_list;
-    /* flops_parallel_amount and bytes_parallel_amount are automatically deleted in ~L07Action */
+    delete[] host_list;
+    delete[] flops_parallel_amount;
+    delete[] bytes_parallel_amount;
   }
   void setUsed();
   void setNotUsed() { this->isused = false; }