Commit b19f9d9c authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 341065 (Null-checking quantityConfig suggests that it...

Fix Coverity Scan CID 341065 (Null-checking quantityConfig suggests that it may be null, but it has already been dereferenced on all paths leading to the check.)
parent 324da70e
......@@ -3915,18 +3915,18 @@ flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt
size,
buffer,
PDCP_TRANSMISSION_MODE_CONTROL);
if (quantityConfig){
if (quantityConfig->quantityConfigEUTRA){
if (quantityConfig->quantityConfigEUTRA->filterCoefficientRSRQ){
free(quantityConfig->quantityConfigEUTRA->filterCoefficientRSRQ);
}
if (quantityConfig->quantityConfigEUTRA->filterCoefficientRSRP){
free(quantityConfig->quantityConfigEUTRA->filterCoefficientRSRP);
}
free(quantityConfig->quantityConfigEUTRA);
if (quantityConfig->quantityConfigEUTRA){
if (quantityConfig->quantityConfigEUTRA->filterCoefficientRSRQ){
free(quantityConfig->quantityConfigEUTRA->filterCoefficientRSRQ);
}
if (quantityConfig->quantityConfigEUTRA->filterCoefficientRSRP){
free(quantityConfig->quantityConfigEUTRA->filterCoefficientRSRP);
}
free(quantityConfig);
free(quantityConfig->quantityConfigEUTRA);
}
free(quantityConfig);
quantityConfig = NULL;
if(mac_MainConfig){
if(mac_MainConfig->ul_SCH_Config){
......
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