aboutsummaryrefslogtreecommitdiff
path: root/unittest/tcohpsk.c
diff options
context:
space:
mode:
Diffstat (limited to 'unittest/tcohpsk.c')
-rw-r--r--unittest/tcohpsk.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/unittest/tcohpsk.c b/unittest/tcohpsk.c
index 1519d7d..777bc29 100644
--- a/unittest/tcohpsk.c
+++ b/unittest/tcohpsk.c
@@ -71,8 +71,8 @@ int main(int argc, char *argv[]) {
int tx_bits_log[COHPSK_BITS_PER_FRAME * FRAMES];
COMP tx_symb_log[NSYMROWPILOT * FRAMES][COHPSK_NC * COHPSK_ND];
COMP tx_fdm_frame_log[COHPSK_M * NSYMROWPILOT * FRAMES];
- COMP ch_fdm_frame_log[COHPSK_M * NSYMROWPILOT * FRAMES];
- COMP ch_fdm_frame_log_out[(COHPSK_M * NSYMROWPILOT + 1) * FRAMES];
+ COMP ch_fdm_frame_log[COHPSK_M * NSYMROWPILOT * FRAMESL];
+ COMP ch_fdm_frame_log_out[(COHPSK_M * NSYMROWPILOT + 1) * FRAMESL];
// COMP rx_fdm_frame_bb_log[M*NSYMROWPILOT*FRAMES];
// COMP ch_symb_log[NSYMROWPILOT*FRAMES][COHPSK_NC*COHPSK_ND];
COMP ct_symb_ff_log[NSYMROWPILOT * FRAMES][COHPSK_NC * COHPSK_ND];
@@ -318,6 +318,11 @@ int main(int argc, char *argv[]) {
#endif
fclose(fout);
+ free(coh->rx_baseband_log);
+ free(coh->rx_filt_log);
+ free(coh->ch_symb_log);
+ free(coh->rx_timing_log);
+
cohpsk_destroy(coh);
return 0;