Change in osmo-bts[master]: bts: Properly free bts->shutdown_fi when struct gsm_bts is freed

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
Tue Nov 23 13:42:36 UTC 2021


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/26346 )


Change subject: bts: Properly free bts->shutdown_fi when struct gsm_bts is freed
......................................................................

bts: Properly free bts->shutdown_fi when struct gsm_bts is freed

Change-Id: I8c59f030c39c83a91b8504d4c5ce3b2058206fcf
---
M src/common/bts.c
1 file changed, 4 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/46/26346/1

diff --git a/src/common/bts.c b/src/common/bts.c
index 86140ba..93fb400 100644
--- a/src/common/bts.c
+++ b/src/common/bts.c
@@ -219,6 +219,10 @@
 		osmo_fsm_inst_free(bts->mo.fi);
 		bts->mo.fi = NULL;
 	}
+	if (bts->shutdown_fi) {
+		osmo_fsm_inst_free(bts->shutdown_fi);
+		bts->shutdown_fi = NULL;
+	}
 	return 0;
 }
 

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I8c59f030c39c83a91b8504d4c5ce3b2058206fcf
Gerrit-Change-Number: 26346
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211123/1fa16def/attachment.htm>


More information about the gerrit-log mailing list