From f1d5a92cd76d471f3fed6298813b81aa64feaf8e Mon Sep 17 00:00:00 2001 From: Roberto Louro Magueta Date: Tue, 31 Jan 2023 13:52:51 +0000 Subject: [PATCH] Memory free in nr_zero_forcing_rx() function --- .../NR_UE_TRANSPORT/nr_dlsch_demodulation.c | 44 ++++++++++++++----- 1 file changed, 33 insertions(+), 11 deletions(-) diff --git a/openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c b/openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c index e3304c3c10..08cb9598f0 100644 --- a/openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c +++ b/openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_demodulation.c @@ -2198,7 +2198,7 @@ uint8_t nr_zero_forcing_rx(uint32_t rx_size, int length) { int *ch0r, *ch0c; - int32_t *** conjH_H_elements; + int32_t ***conjH_H_elements; uint32_t nb_rb_0 = length/12 + ((length%12)?1:0); int32_t determ_fin[12*nb_rb_0] __attribute__((aligned(32))); @@ -2233,11 +2233,11 @@ uint8_t nr_zero_forcing_rx(uint32_t rx_size, //Compute the inverse and determinant of the H^*H matrix //Allocate the inverse matrix - int32_t ** inv_H_h_H; - inv_H_h_H = (int32_t **)malloc16_clear( n_tx*n_tx*sizeof(int32_t *) ); - for (int rtx=0;rtx