Commit 47ea8d79 authored by Robert Schmidt's avatar Robert Schmidt Committed by francescomani

Free memory correctly

parent d664190f
......@@ -885,7 +885,6 @@ void phy_free_nr_gNB(PHY_VARS_gNB *gNB)
free_and_zero(pusch_vars->rho);
free_and_zero(pusch_vars->llr);
free_and_zero(pusch_vars);
} // ULSCH_id
free(gNB->pusch_vars);
}
......@@ -1117,4 +1116,5 @@ void reset_nr_transport(PHY_VARS_gNB *gNB)
for (int i = 0; i < gNB->max_nb_pusch; i++)
free_gNB_ulsch(&gNB->ulsch[i], fp->N_RB_UL);
free(gNB->ulsch);
}
......@@ -79,7 +79,6 @@ void free_gNB_ulsch(NR_gNB_ULSCH_t *ulsch, uint16_t N_RB_UL)
free_and_zero(ulsch->harq_process);
ulsch->harq_process = NULL;
}
free_and_zero(ulsch);
}
NR_gNB_ULSCH_t new_gNB_ulsch(uint8_t max_ldpc_iterations, uint16_t N_RB_UL)
......
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