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

This commit is contained in:
Dong Anyuan
2019-05-28 21:15:24 +09:00
parent ba81c62eb7
commit 130c8d3da0
@@ -233,6 +233,12 @@ Protocol__FlexUeStatsReport * copy_ue_stats_report(Protocol__FlexUeStatsReport *
return copy;
error:
if (copy){
if (copy->bsr){
free(copy->bsr);
}
free(copy);
}
return NULL;
}