Fix Coverity Scan CID 300392 (Variable dl_report going out of scope leaks the storage it points to.)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user