Commit a49b9360 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 d98d6d78
......@@ -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){
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