Commit 7ddcd613 authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 300407 (Variable stats_reply_msg going out of scope...

Fix Coverity Scan CID 300407 (Variable stats_reply_msg going out of scope leaks the storage it points to.)
parent 66e5dd2d
......@@ -151,6 +151,15 @@ Protocol__FlexranMessage * flexran_agent_generate_diff_mac_stats_report(Protocol
return msg;
error:
if (stats_reply_msg) {
if (stats_reply_msg->ue_report) {
free(stats_reply_msg->ue_report);
}
if (stats_reply_msg->cell_report) {
free(stats_reply_msg->cell_report);
}
free(stats_reply_msg);
}
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