Commit a9e9488c authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 300392 (Variable dl_report going out of scope leaks the...

Fix Coverity Scan CID 300392 (Variable dl_report going out of scope leaks the storage it points to.)
parent 097d78ca
...@@ -361,6 +361,14 @@ Protocol__FlexDlCqiReport * copy_dl_cqi_report(Protocol__FlexDlCqiReport * origi ...@@ -361,6 +361,14 @@ Protocol__FlexDlCqiReport * copy_dl_cqi_report(Protocol__FlexDlCqiReport * origi
error: error:
/*TODO: Must free memory properly*/ /*TODO: Must free memory properly*/
if (dl_report != NULL) {
if (csi_reports != NULL) {
free(csi_reports);
csi_reports = NULL;
}
free(dl_report);
dl_report = NULL;
}
return NULL; 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