Fixed turbocoder free

This commit is contained in:
Xavier Arteaga 2018-08-01 10:58:08 +02:00
parent 55edb92ac5
commit ca429d2be5
1 changed files with 5 additions and 4 deletions

View File

@ -65,11 +65,12 @@ int srslte_tcod_init(srslte_tcod_t *h, uint32_t max_long_cb) {
}
void srslte_tcod_free(srslte_tcod_t *h) {
h->max_long_cb = 0;
if (h->temp) {
free(h->temp);
}
if (table_initiated) {
h->max_long_cb = 0;
if (h->temp) {
free(h->temp);
}
for (int i = 0; i < 188; i++) {
srslte_bit_interleaver_free(&tcod_interleavers[i]);
}