Commit 130c8d3d authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 300490 (Variable copy going out of scope leaks the storage it points to.)

parent ba81c62e
...@@ -233,6 +233,12 @@ Protocol__FlexUeStatsReport * copy_ue_stats_report(Protocol__FlexUeStatsReport * ...@@ -233,6 +233,12 @@ Protocol__FlexUeStatsReport * copy_ue_stats_report(Protocol__FlexUeStatsReport *
return copy; return copy;
error: error:
if (copy){
if (copy->bsr){
free(copy->bsr);
}
free(copy);
}
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