Code Review
/
o-du
/
l2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "CI: Add silent cmake SonarCloud scan"
[o-du/l2.git]
/
src
/
5gnrmac
/
mac_cfg_hdl.c
diff --git
a/src/5gnrmac/mac_cfg_hdl.c
b/src/5gnrmac/mac_cfg_hdl.c
index
6b09b9a
..
bfac69c
100644
(file)
--- 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->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");
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)
{
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;
}
return ret;
}