X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2F5gnrmac%2Fmac_cfg_hdl.c;h=bfac69cbdb844dac91f58b4394f2f1abeede5b3f;hb=e54c2aae19e97065def9e5ab2d1488477b1ea209;hp=6b09b9a4a40206fac246a96a80c35037d2e373bc;hpb=3b1e7ce233103b83ac87359bbec15c275d4a11de;p=o-du%2Fl2.git diff --git a/src/5gnrmac/mac_cfg_hdl.c b/src/5gnrmac/mac_cfg_hdl.c index 6b09b9a4a..bfac69cbd 100644 --- a/src/5gnrmac/mac_cfg_hdl.c +++ b/src/5gnrmac/mac_cfg_hdl.c @@ -778,6 +778,7 @@ void freeMacSliceCfgReq(MacSliceCfgReq *cfgReq,Pst *pst) MAC_FREE_SHRABL_BUF(pst->region, pst->pool, cfgReq->listOfRrmPolicy, cfgReq->numOfRrmPolicy * sizeof(MacSliceRrmPolicy*)); } } + MAC_FREE_SHRABL_BUF(pst->region, pst->pool, cfgReq, sizeof(MacSliceCfgReq)); } @@ -1058,11 +1059,6 @@ uint8_t MacSendStatsRspToDuApp(MacStatsRsp *statsRsp) DU_LOG("\nINFO --> MAC : MacSendStatsRspToDuApp: Sending Statistics Response to DU APP"); - /* Workaround : To skip corrupted memory, allocating a pointer that will - * remain unused */ - uint8_t *dummyPtr = NULLP; - MAC_ALLOC_SHRABL_BUF(dummyPtr, sizeof(uint8_t)); - MAC_ALLOC_SHRABL_BUF(macStatsRsp, sizeof(MacStatsRsp)); if(macStatsRsp == NULLP) { @@ -1084,8 +1080,6 @@ uint8_t MacSendStatsRspToDuApp(MacStatsRsp *statsRsp) } } - /* Workaround : Freeing the dummy pointer */ - MAC_FREE_SHRABL_BUF(MAC_MEM_REGION, MAC_POOL, dummyPtr, sizeof(uint8_t)); return ret; }