RlcCfgInfo *cfg
)
{
+ uint8_t cfgIdx = 0;
RlcCb *tRlcCb;
RlcUlCfgTmpData *cfgTmpData;
#if (ERRCLASS & ERRCLS_INT_PAR)
if (pst->dstInst >= MAX_RLC_INSTANCES)
{
+ for(cfgIdx=0; cfgIdx<cfg->numEnt; cfgIdx++)
+ {
+ RLC_PST_FREE(pst->region, pst->pool, cfg->entCfg[cfgIdx].snssai, sizeof(Snssai));
+ }
RLC_PST_FREE(pst->region, pst->pool, cfg, sizeof(RlcCfgInfo));
return RFAILED;
}
if (cfgTmpData == NULLP)
{
+ for(cfgIdx=0; cfgIdx<cfg->numEnt; cfgIdx++)
+ {
+ RLC_PST_FREE(pst->region, pst->pool, cfg->entCfg[cfgIdx].snssai, sizeof(Snssai));
+ }
RLC_PST_FREE(pst->region, pst->pool, cfg, sizeof(RlcCfgInfo));
return RFAILED;
}
if (rlcDbmAddUlTransaction(tRlcCb, cfgTmpData) != ROK)
{
DU_LOG("\nERROR --> RLC_UL : Addition to UL transId Lst Failed");
+ for(cfgIdx=0; cfgIdx<cfg->numEnt; cfgIdx++)
+ {
+ RLC_PST_FREE(pst->region, pst->pool, cfg->entCfg[cfgIdx].snssai, sizeof(Snssai));
+ }
RLC_PST_FREE(pst->region, pst->pool, cfg, sizeof(RlcCfgInfo));
return RFAILED;