Fixed turbocoder free

master
Xavier Arteaga 6 years ago
parent 55edb92ac5
commit ca429d2be5

@ -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) { void srslte_tcod_free(srslte_tcod_t *h) {
h->max_long_cb = 0;
if (h->temp) {
free(h->temp);
}
if (table_initiated) { if (table_initiated) {
h->max_long_cb = 0;
if (h->temp) {
free(h->temp);
}
for (int i = 0; i < 188; i++) { for (int i = 0; i < 188; i++) {
srslte_bit_interleaver_free(&tcod_interleavers[i]); srslte_bit_interleaver_free(&tcod_interleavers[i]);
} }

Loading…
Cancel
Save