missing condition on free nr_mimo_precoding_matrix
This commit is contained in:
@@ -710,13 +710,14 @@ void phy_free_nr_gNB(PHY_VARS_gNB *gNB)
|
|||||||
const int n_buf = Prx * max_ul_mimo_layers;
|
const int n_buf = Prx * max_ul_mimo_layers;
|
||||||
|
|
||||||
int max_dl_mimo_layers =(fp->nb_antennas_tx<NR_MAX_NB_LAYERS) ? fp->nb_antennas_tx : NR_MAX_NB_LAYERS;
|
int max_dl_mimo_layers =(fp->nb_antennas_tx<NR_MAX_NB_LAYERS) ? fp->nb_antennas_tx : NR_MAX_NB_LAYERS;
|
||||||
for (int nl = 0; nl < max_dl_mimo_layers; nl++) {
|
if (fp->nb_antennas_tx>1) {
|
||||||
for(int size = 0; size < gNB->pmiq_size[nl]; size++) {
|
for (int nl = 0; nl < max_dl_mimo_layers; nl++) {
|
||||||
free_and_zero(gNB->nr_mimo_precoding_matrix[nl][size]);
|
for(int size = 0; size < gNB->pmiq_size[nl]; size++)
|
||||||
|
free_and_zero(gNB->nr_mimo_precoding_matrix[nl][size]);
|
||||||
|
free_and_zero(gNB->nr_mimo_precoding_matrix[nl]);
|
||||||
}
|
}
|
||||||
free_and_zero(gNB->nr_mimo_precoding_matrix[nl]);
|
free_and_zero(gNB->nr_mimo_precoding_matrix);
|
||||||
}
|
}
|
||||||
free_and_zero(gNB->nr_mimo_precoding_matrix);
|
|
||||||
|
|
||||||
uint32_t ***pdcch_dmrs = gNB->nr_gold_pdcch_dmrs;
|
uint32_t ***pdcch_dmrs = gNB->nr_gold_pdcch_dmrs;
|
||||||
for (int slot = 0; slot < fp->slots_per_frame; slot++) {
|
for (int slot = 0; slot < fp->slots_per_frame; slot++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user