Bugfix: preamble_list is an array

Since commit e6e25275ed, preamble_list is
an array, not a pointer. Hence, we don't need to call free().
This commit is contained in:
Robert Schmidt
2024-10-10 16:02:29 +02:00
parent c945bef2f1
commit c648dfd078
@@ -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 {