X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2F5gnrsch%2Fsch_ue_mgr.c;fp=src%2F5gnrsch%2Fsch_ue_mgr.c;h=2dcbee080b2daa6806ccbcb6336ad436e316bb5f;hb=bdbb71a3b306ff795230159be2bb466016d8b843;hp=8ca3bac28f81aa46890b3909bc16584b1c41162d;hpb=cb811f8127971006aa5c345c71cb737e8be8dc10;p=o-du%2Fl2.git diff --git a/src/5gnrsch/sch_ue_mgr.c b/src/5gnrsch/sch_ue_mgr.c index 8ca3bac28..2dcbee080 100644 --- a/src/5gnrsch/sch_ue_mgr.c +++ b/src/5gnrsch/sch_ue_mgr.c @@ -1069,12 +1069,39 @@ void deleteSchPdschServCellCfg(SchPdschServCellCfg *pdschServCellCfg) * ****************************************************************/ void deleteSchUeCb(SchUeCb *ueCb) { - uint8_t timeDomRsrcIdx = 0, ueLcIdx = 0; + uint8_t timeDomRsrcIdx = 0, ueLcIdx = 0, idx =0; SchPucchCfg *pucchCfg = NULLP; SchPdschConfig *pdschCfg = NULLP; + CmLList *node = NULLP, *next = NULLP; if(ueCb) { + if(ueCb->hqDlmap) + { + for (idx = 0; idxcellCb->numSlots; idx++) + { + if(ueCb->hqDlmap[idx]) + { + cmLListDeleteLList(&ueCb->hqDlmap[idx]->hqList); + SCH_FREE(ueCb->hqDlmap[idx], sizeof(SchHqDlMap)); + } + } + SCH_FREE(ueCb->hqDlmap, sizeof(SchHqDlMap*)*(ueCb->cellCb->numSlots)); + } + + if(ueCb->hqUlmap) + { + for (idx = 0; idxcellCb->numSlots; idx++) + { + if(ueCb->hqUlmap[idx]) + { + cmLListDeleteLList(&ueCb->hqUlmap[idx]->hqList); + SCH_FREE(ueCb->hqUlmap[idx], sizeof(SchHqUlMap)); + } + } + SCH_FREE(ueCb->hqUlmap, sizeof(SchHqUlMap*)*(ueCb->cellCb->numSlots)); + } + SCH_FREE(ueCb->ueCfg.ambrCfg, sizeof(SchAmbrCfg)); if(ueCb->ueCfg.spCellCfgPres) {