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

Change-Id: I8c59f030c39c83a91b8504d4c5ce3b2058206fcf
This commit is contained in:
Pau Espin 2021-11-23 14:42:09 +01:00
parent 02532bafb8
commit 40e97f3d02
1 changed files with 4 additions and 0 deletions

View File

@ -219,6 +219,10 @@ static int gsm_bts_talloc_destructor(struct gsm_bts *bts)
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;
}