Commit 540e409b authored by Dong Anyuan's avatar Dong Anyuan

ReFix Coverity Scan CID 300508 (Variable ul_info going out of scope leaks the...

ReFix Coverity Scan CID 300508 (Variable ul_info going out of scope leaks the storage it points to.)
parent 983d2085
...@@ -1045,11 +1045,18 @@ int flexran_agent_mac_sf_trigger(mid_t mod_id, const void *params, Protocol__Fle ...@@ -1045,11 +1045,18 @@ int flexran_agent_mac_sf_trigger(mid_t mod_id, const void *params, Protocol__Fle
free(sf_trigger_msg->dl_info[i]->harq_status); free(sf_trigger_msg->dl_info[i]->harq_status);
free(sf_trigger_msg->dl_info[i]); free(sf_trigger_msg->dl_info[i]);
} }
free(sf_trigger_msg->dl_info);
if (sf_trigger_msg->ul_info != NULL) {
for (i = 0; i < sf_trigger_msg->n_ul_info; i++) { for (i = 0; i < sf_trigger_msg->n_ul_info; i++) {
if (sf_trigger_msg->ul_info[i] != NULL) {
if (sf_trigger_msg->ul_info[i]->ul_reception != NULL) {
free(sf_trigger_msg->ul_info[i]->ul_reception);
}
free(sf_trigger_msg->ul_info[i]); free(sf_trigger_msg->ul_info[i]);
} }
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);
} }
if(*msg != NULL) if(*msg != NULL)
......
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