Commit 4e1beaa6 authored by Dong Anyuan's avatar Dong Anyuan

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

parent 3cbb53e0
......@@ -1033,6 +1033,7 @@ int flexran_agent_mac_sf_trigger(mid_t mod_id, const void *params, Protocol__Fle
if (sf_trigger_msg != NULL) {
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]);
}
for (i = 0; i < sf_trigger_msg->n_ul_info; i++) {
free(sf_trigger_msg->ul_info[i]);
......
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