Commit e04e39e7 authored by Dong Anyuan's avatar Dong Anyuan

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

parent be91ae8c
...@@ -1017,6 +1017,9 @@ int flexran_agent_mac_sf_trigger(mid_t mod_id, const void *params, Protocol__Fle ...@@ -1017,6 +1017,9 @@ int flexran_agent_mac_sf_trigger(mid_t mod_id, const void *params, Protocol__Fle
for (i = 0; i < sf_trigger_msg->n_dl_info; i++) { for (i = 0; i < sf_trigger_msg->n_dl_info; i++) {
free(sf_trigger_msg->dl_info[i]->harq_status); free(sf_trigger_msg->dl_info[i]->harq_status);
} }
for (i = 0; i < sf_trigger_msg->n_ul_info; i++) {
free(sf_trigger_msg->ul_info[i]);
}
free(sf_trigger_msg->dl_info); free(sf_trigger_msg->dl_info);
free(sf_trigger_msg->ul_info); free(sf_trigger_msg->ul_info);
free(sf_trigger_msg); free(sf_trigger_msg);
......
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