diff options
-rw-r--r-- | include/osmocom/core/fsm.h | 2 | ||||
-rw-r--r-- | tests/fsm/fsm_test.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/osmocom/core/fsm.h b/include/osmocom/core/fsm.h index ce0db15a..9b6072dc 100644 --- a/include/osmocom/core/fsm.h +++ b/include/osmocom/core/fsm.h @@ -115,7 +115,7 @@ void osmo_fsm_log_addr(bool log_addr); osmo_fsm_state_name((fi)->fsm, (fi)->state), ## args) int osmo_fsm_register(struct osmo_fsm *fsm); - +void osmo_fsm_unregister(struct osmo_fsm *fsm); struct osmo_fsm_inst *osmo_fsm_inst_alloc(struct osmo_fsm *fsm, void *ctx, void *priv, int log_level, const char *id); struct osmo_fsm_inst *osmo_fsm_inst_alloc_child(struct osmo_fsm *fsm, diff --git a/tests/fsm/fsm_test.c b/tests/fsm/fsm_test.c index 84c2ae4d..29b31efc 100644 --- a/tests/fsm/fsm_test.c +++ b/tests/fsm/fsm_test.c @@ -151,5 +151,6 @@ int main(int argc, char **argv) osmo_select_main(0); } + osmo_fsm_unregister(&fsm); exit(0); } |