Commit 64e0df28 authored by Dong Anyuan's avatar Dong Anyuan

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

parent c91bfb22
...@@ -521,6 +521,9 @@ int flexran_agent_stats_reply(mid_t enb_id, xid_t xid, const report_config_t *re ...@@ -521,6 +521,9 @@ int flexran_agent_stats_reply(mid_t enb_id, xid_t xid, const report_config_t *re
error : error :
LOG_E(FLEXRAN_AGENT, "errno %d occured\n", err_code); LOG_E(FLEXRAN_AGENT, "errno %d occured\n", err_code);
if (header){
free(header);
}
return err_code; return err_code;
} }
......
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