Change in osmo-bts[master]: trx_sched_clean_ts(): also free() the associated 'struct l1sched_ts'

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Oct 11 08:41:56 UTC 2021


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/25731 )

Change subject: trx_sched_clean_ts(): also free() the associated 'struct l1sched_ts'
......................................................................

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

Change-Id: I44a8f18c81dd8bc76ca07dfaae7bcdb2fedc9261
Related: OS#5248
---
M src/common/scheduler.c
1 file changed, 3 insertions(+), 0 deletions(-)

Approvals:
  pespin: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index e7d17d0..17fb537 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -677,6 +677,9 @@
 	/* 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)

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/25731
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I44a8f18c81dd8bc76ca07dfaae7bcdb2fedc9261
Gerrit-Change-Number: 25731
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211011/d54250a0/attachment.htm>


More information about the gerrit-log mailing list