Skip to content

Commit

Permalink
#1899: runnable: fix double free
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander authored and cz4rs committed Sep 28, 2022
1 parent 33b9947 commit 8e585ba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/vt/scheduler/base_unit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,12 @@ void BaseUnit::execute() {
if (not r_->isDone()) {
auto tid = r_->getThreadID();
theSched()->suspend(tid, std::move(r_));
} else {
delete r_;
}
#else
delete r_;
#endif
delete r_;
} else if (work_) {
work_();
}
Expand Down

0 comments on commit 8e585ba

Please sign in to comment.