Change in osmo-bts[master]: trx_sched_clean(): also free() the shadow timeslot

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/+/25732 )

Change subject: trx_sched_clean(): also free() the shadow timeslot
......................................................................

trx_sched_clean(): also free() the shadow timeslot

Change-Id: Ic14e9de7487ba8152ffb1aa1bab508a2b9a11ea0
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 17fb537..5118904 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -694,6 +694,9 @@
 		/* Clean primary and shadow timeslots */
 		trx_sched_clean_ts(ts);
 		trx_sched_clean_ts(ts->vamos.peer);
+
+		talloc_free(ts->vamos.peer);
+		ts->vamos.peer = NULL;
 	}
 }
 

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ic14e9de7487ba8152ffb1aa1bab508a2b9a11ea0
Gerrit-Change-Number: 25732
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/e0413f10/attachment.htm>


More information about the gerrit-log mailing list