[bugfix](use after free) should not set finish depdency any more if task ctx lock failed (#32730)
Co-authored-by: yiguolei <yiguolei@gmail.com>
This commit is contained in:
@ -101,7 +101,6 @@ Status AsyncResultWriter::start_writer(RuntimeState* state, RuntimeProfile* prof
|
||||
RETURN_IF_ERROR(pool_ptr->submit_func([this, state, profile, task_ctx]() {
|
||||
auto task_lock = task_ctx.lock();
|
||||
if (task_lock == nullptr) {
|
||||
_set_ready_to_finish();
|
||||
return;
|
||||
}
|
||||
this->process_block(state, profile);
|
||||
@ -111,7 +110,6 @@ Status AsyncResultWriter::start_writer(RuntimeState* state, RuntimeProfile* prof
|
||||
[this, state, profile, task_ctx]() {
|
||||
auto task_lock = task_ctx.lock();
|
||||
if (task_lock == nullptr) {
|
||||
_set_ready_to_finish();
|
||||
return;
|
||||
}
|
||||
this->process_block(state, profile);
|
||||
|
||||
Reference in New Issue
Block a user