Commit c648dfd0 authored by Robert Schmidt's avatar Robert Schmidt

Bugfix: preamble_list is an array

Since commit e6e25275, preamble_list is
an array, not a pointer. Hence, we don't need to call free().
parent c945bef2
......@@ -146,9 +146,6 @@ int aerial_phy_nr_rach_indication(nfapi_nr_rach_indication_t *ind)
}
if (!put_queue(&gnb_rach_ind_queue, rach_ind)) {
LOG_E(NR_MAC, "Put_queue failed for rach_ind\n");
for (int i = 0; i < ind->number_of_pdus; i++) {
free(rach_ind->pdu_list[i].preamble_list);
}
free(rach_ind->pdu_list);
free(rach_ind);
} else {
......
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