Commit 59b7fb61 authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 300502 (Variable quantityConfig going out of scope leaks...

Fix Coverity Scan CID 300502 (Variable quantityConfig going out of scope leaks the storage it points to.)
parent 5cb79f91
...@@ -3915,6 +3915,18 @@ flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt ...@@ -3915,6 +3915,18 @@ flexran_rrc_eNB_generate_defaultRRCConnectionReconfiguration(const protocol_ctxt
size, size,
buffer, buffer,
PDCP_TRANSMISSION_MODE_CONTROL); 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);
}
free(quantityConfig);
}
} }
......
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