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 ...@@ -3916,15 +3916,15 @@ flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt
buffer, buffer,
PDCP_TRANSMISSION_MODE_CONTROL); PDCP_TRANSMISSION_MODE_CONTROL);
if (quantityConfig->quantityConfigEUTRA){
if (quantityConfig->quantityConfigEUTRA->filterCoefficientRSRQ){
free(quantityConfig->quantityConfigEUTRA->filterCoefficientRSRQ); free(quantityConfig->quantityConfigEUTRA->filterCoefficientRSRQ);
} quantityConfig->quantityConfigEUTRA->filterCoefficientRSRQ = NULL;
if (quantityConfig->quantityConfigEUTRA->filterCoefficientRSRP){
free(quantityConfig->quantityConfigEUTRA->filterCoefficientRSRP); free(quantityConfig->quantityConfigEUTRA->filterCoefficientRSRP);
} quantityConfig->quantityConfigEUTRA->filterCoefficientRSRP = NULL;
free(quantityConfig->quantityConfigEUTRA); free(quantityConfig->quantityConfigEUTRA);
} quantityConfig->quantityConfigEUTRA = NULL;
free(quantityConfig); free(quantityConfig);
quantityConfig = NULL; 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