Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix high memory usage when exec events are done.
[simgrid.git] / src / kernel / activity / ExecImpl.cpp
index 3b55aff..7e16150 100644 (file)
@@ -146,6 +146,8 @@ void ExecImpl::post()
     actor_->activities_.remove(this);
     actor_ = nullptr;
   }
+  if (state_ != State::FAILED && cb_id_ >= 0)
+    s4u::Host::on_state_change.disconnect(cb_id_);
   /* Answer all simcalls associated with the synchro */
   finish();
 }