trx_sched_clean_ts(): also free() the associated 'struct l1sched_ts'

Change-Id: I44a8f18c81dd8bc76ca07dfaae7bcdb2fedc9261
Related: OS#5248
This commit is contained in:
Vadim Yanitskiy 2021-10-08 22:34:49 +06:00 committed by pespin
parent be688f1603
commit 0eb6891259
1 changed files with 3 additions and 0 deletions

View File

@ -677,6 +677,9 @@ static void trx_sched_clean_ts(struct gsm_bts_trx_ts *ts)
/* clear lchan channel states */
for (i = 0; i < ARRAY_SIZE(ts->lchan); i++)
lchan_set_state(&ts->lchan[i], LCHAN_S_NONE);
talloc_free(l1ts);
ts->priv = NULL;
}
void trx_sched_clean(struct gsm_bts_trx *trx)