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