Commit ddb9b218 authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 300506 (Variable full_ul_report going out of scope leaks...

Fix Coverity Scan CID 300506 (Variable full_ul_report going out of scope leaks the storage it points to.)
parent a4a51eb9
......@@ -303,6 +303,20 @@ Protocol__FlexUlCqiReport * copy_ul_cqi_report(Protocol__FlexUlCqiReport * origi
return full_ul_report;
error:
if (full_ul_report){
if (ul_report){
for (i = 0; i < full_ul_report->n_cqi_meas; i++){
if (ul_report[i]){
if ( ul_report[i]->sinr ){
free(ul_report[i]->sinr);
}
free(ul_report[i]);
}
}
free(ul_report);
}
free(full_ul_report);
}
return 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