RlcCfgCfmInfo *cfmInfo
)
{
+ uint8_t cfgIdx=0;
RlcCb *tRlcCb;
RlcCfgCfmInfo *cfgCfm;
RlcUlCfgTmpData *cfgTmpData;
else if (tRlcCb->u.ulCb->rlcUlUdxEventType == EVENT_RLC_UE_DELETE_REQ)
{
FILL_PST_RLC_TO_DUAPP(rspPst, RLC_UL_INST, EVENT_RLC_UE_DELETE_RSP);
- if(sendRlcUeDeleteRspToDu(cfgCfm->ueId, cfgCfm->cellId, SUCCESSFUL) != ROK)
+ if(sendRlcUeDeleteRspToDu(cfgCfm->cellId, cfgCfm->ueId, SUCCESSFUL) != ROK)
{
DU_LOG("ERROR --> RLC_UL: rlcUlUdxCfgCfm(): Failed to send UE delete response ");
+ RLC_FREE(tRlcCb, cfgCfm, sizeof(RlcCfgCfmInfo));
return RFAILED;
}
+ RLC_FREE(tRlcCb, cfgCfm, sizeof(RlcCfgCfmInfo));
}
/* free the memory from DL */
- RLC_FREE_SHRABL_BUF(pst->region,
- pst->pool,
- cfmInfo,
- sizeof(RlcCfgCfmInfo));
+ RLC_FREE_SHRABL_BUF(pst->region, pst->pool, cfmInfo, sizeof(RlcCfgCfmInfo));
/* free the cfgInfo that came from LM */
- RLC_PST_FREE(pst->region, pst->pool, cfgTmpData->cfgInfo, sizeof(RlcCfgInfo));
+ for(cfgIdx=0; cfgIdx<cfgTmpData->cfgInfo->numEnt; cfgIdx++)
+ {
+ RLC_FREE(tRlcCb, cfgTmpData->cfgInfo->entCfg[cfgIdx].snssai, sizeof(Snssai));
+ }
+ RLC_FREE(tRlcCb, cfgTmpData->cfgInfo, sizeof(RlcCfgInfo));
RLC_FREE(tRlcCb,cfgTmpData,sizeof(RlcUlCfgTmpData));
return ROK;