Commit 507c9cd2 authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 341071 (Null-checking mac_MainConfig->ul_SCH_Config...

Fix Coverity Scan CID 341071 (Null-checking mac_MainConfig->ul_SCH_Config suggests that it may be null, but it has already been dereferenced on all paths leading to the check.)
parent 3dae026c
......@@ -3928,10 +3928,9 @@ flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt
free(quantityConfig);
quantityConfig = NULL;
if(mac_MainConfig->ul_SCH_Config){
free(mac_MainConfig->ul_SCH_Config);
mac_MainConfig->ul_SCH_Config = NULL;
}
free(mac_MainConfig->ul_SCH_Config);
mac_MainConfig->ul_SCH_Config = NULL;
if(mac_MainConfig->phr_Config){
free(mac_MainConfig->phr_Config);
mac_MainConfig->phr_Config = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment