X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fa5d9ddd01e1df9404b317e2d53878b5f1f2a854..c7895d72bc8dfe43a87706f08f8ec5ea46664de9:/src/simix/ActorImpl.cpp diff --git a/src/simix/ActorImpl.cpp b/src/simix/ActorImpl.cpp index 2e604a9e01..2d5dcaf14f 100644 --- a/src/simix/ActorImpl.cpp +++ b/src/simix/ActorImpl.cpp @@ -461,6 +461,7 @@ ActorImpl* ActorImpl::start(simix::ActorCode code) xbt_assert(code && host_ != nullptr, "Invalid parameters"); if (not host_->is_on()) { + intrusive_ptr_release(this); XBT_WARN("Cannot launch actor '%s' on failed host '%s'", name_.c_str(), host_->get_cname()); std::rethrow_exception( std::make_exception_ptr(simgrid::HostFailureException(XBT_THROW_POINT, "Cannot start actor on failed host.")));