fix memory leak

This commit is contained in:
wxhwang
2023-10-25 14:13:12 +00:00
committed by ob-robot
parent 95b79c31ab
commit ed15174abb

View File

@ -396,7 +396,14 @@ int ObTabletGroupRestoreDagNet::start_running_for_restore_()
LOG_WARN("Fail to add task", K(ret));
ret = OB_EAGAIN;
}
} else {
initial_restore_dag = nullptr;
}
if (OB_NOT_NULL(initial_restore_dag) && OB_NOT_NULL(scheduler)) {
scheduler->free_dag(*initial_restore_dag);
}
return ret;
}