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

This commit is contained in:
Dong Anyuan
2019-05-28 21:25:59 +09:00
parent c91bfb228b
commit 64e0df286c
+3
View File
@@ -521,6 +521,9 @@ int flexran_agent_stats_reply(mid_t enb_id, xid_t xid, const report_config_t *re
error :
LOG_E(FLEXRAN_AGENT, "errno %d occured\n", err_code);
if (header){
free(header);
}
return err_code;
}