Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix leak in process_join
authorPaul Bédaride <paul.bedaride@gmail.com>
Wed, 7 May 2014 09:24:57 +0000 (11:24 +0200)
committerPaul Bédaride <paul.bedaride@gmail.com>
Wed, 7 May 2014 09:31:14 +0000 (11:31 +0200)
src/simix/smx_process.c

index da0f7d2..60fc8a6 100644 (file)
@@ -702,9 +702,10 @@ static int SIMIX_process_join_finish(smx_process_exit_status_t status, smx_actio
         SIMIX_simcall_answer(simcall);
       }
     }
         SIMIX_simcall_answer(simcall);
       }
     }
-
-    SIMIX_process_sleep_destroy(action);
+    surf_action_unref(action->sleep.surf_sleep);
+    action->sleep.surf_sleep = NULL;
   }
   }
+  xbt_mallocator_release(simix_global->action_mallocator, action);
   return 0;
 }
 
   return 0;
 }