Commit d92eb9f8 authored by Robert Schmidt's avatar Robert Schmidt

Free memory in nr_dlschsim

parent 20c604cc
...@@ -638,8 +638,15 @@ int main(int argc, char **argv) ...@@ -638,8 +638,15 @@ int main(int argc, char **argv)
reset_DLSCH_struct(gNB, &msgDataTx); reset_DLSCH_struct(gNB, &msgDataTx);
phy_free_nr_gNB(gNB); phy_free_nr_gNB(gNB);
free(gNB->threadPool);
free(RC.gNB[0]);
free(RC.gNB);
for (int sf = 0; sf < 2; sf++)
for (int i = 0; i < 2; i++)
free_nr_ue_dlsch(&UE->dlsch[sf][0][i], N_RB_DL);
term_nr_ue_signal(UE, 1); term_nr_ue_signal(UE, 1);
free(UE);
for (i = 0; i < 2; i++) { for (i = 0; i < 2; i++) {
free(s_re[i]); free(s_re[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