Commit 04732d3a authored by DONG Anyuan's avatar DONG Anyuan

Fix Coverity Scan CID 341064 (Null-checking mac_MainConfig->phr_Config...

Fix Coverity Scan CID 341064 (Null-checking mac_MainConfig->phr_Config suggests that it may be null, but it has already been dereferenced on all paths leading to the check.)
parent 507c9cd2
......@@ -3931,10 +3931,9 @@ flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt
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;
}
free(mac_MainConfig->phr_Config);
mac_MainConfig->phr_Config = NULL;
free(mac_MainConfig);
mac_MainConfig = 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