X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=inline;f=src%2F5gnrrlc%2Frlc_upr_inf_mgr.c;h=422b43db05418abff4fc76fac4cf4c03f958de02;hb=7f6d859aef2f454e8521a921000b37a4571f1e02;hp=4cbc070cf12011e25bb18cca06673eb2e8df8b56;hpb=70e1fb5996d93ef4973ffb654ee6a66228e9031c;p=o-du%2Fl2.git diff --git a/src/5gnrrlc/rlc_upr_inf_mgr.c b/src/5gnrrlc/rlc_upr_inf_mgr.c index 4cbc070cf..422b43db0 100755 --- a/src/5gnrrlc/rlc_upr_inf_mgr.c +++ b/src/5gnrrlc/rlc_upr_inf_mgr.c @@ -244,6 +244,7 @@ Pst *pst, RlcCfgInfo *cfg ) { + uint8_t cfgIdx = 0; RlcCb *tRlcCb; RlcUlCfgTmpData *cfgTmpData; @@ -252,6 +253,10 @@ RlcCfgInfo *cfg #if (ERRCLASS & ERRCLS_INT_PAR) if (pst->dstInst >= MAX_RLC_INSTANCES) { + for(cfgIdx=0; cfgIdxnumEnt; 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; } @@ -262,6 +267,10 @@ RlcCfgInfo *cfg if (cfgTmpData == NULLP) { + for(cfgIdx=0; cfgIdxnumEnt; 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; } @@ -276,6 +285,10 @@ RlcCfgInfo *cfg if (rlcDbmAddUlTransaction(tRlcCb, cfgTmpData) != ROK) { DU_LOG("\nERROR --> RLC_UL : Addition to UL transId Lst Failed"); + for(cfgIdx=0; cfgIdxnumEnt; 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;