From efdd249cb34181454ae6517c455af0d91427f186 Mon Sep 17 00:00:00 2001 From: Francisco Date: Wed, 13 Oct 2021 23:27:13 +0100 Subject: [PATCH] nr,sched: fix dangling reference to ue_cfg in scheduler --- srsenb/src/stack/mac/nr/sched_nr_ue.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsenb/src/stack/mac/nr/sched_nr_ue.cc b/srsenb/src/stack/mac/nr/sched_nr_ue.cc index ed0349a0d..054342294 100644 --- a/srsenb/src/stack/mac/nr/sched_nr_ue.cc +++ b/srsenb/src/stack/mac/nr/sched_nr_ue.cc @@ -89,7 +89,7 @@ void ue::set_cfg(const ue_cfg_t& cfg) for (auto& ue_cc_cfg : cfg.carriers) { if (ue_cc_cfg.active) { if (carriers[ue_cc_cfg.cc] == nullptr) { - carriers[ue_cc_cfg.cc].reset(new ue_carrier(rnti, cfg, sched_cfg.cells[ue_cc_cfg.cc])); + carriers[ue_cc_cfg.cc].reset(new ue_carrier(rnti, ue_cfg, sched_cfg.cells[ue_cc_cfg.cc])); } else { carriers[ue_cc_cfg.cc]->set_cfg(ue_cfg); }