Skip to content
Snippets Groups Projects
Commit 554058d4 authored by DONG Anyuan's avatar DONG Anyuan
Browse files

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 e65b7022
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment