Commit 1de860bc authored by DONG Anyuan's avatar DONG Anyuan

Fix Coverity Scan CID 341070 (Null-checking...

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