summaryrefslogtreecommitdiffstats
path: root/src/fsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fsm.c')
-rw-r--r--src/fsm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fsm.c b/src/fsm.c
index 0bdcd9d4..f9effc47 100644
--- a/src/fsm.c
+++ b/src/fsm.c
@@ -483,10 +483,11 @@ void _osmo_fsm_inst_term(struct osmo_fsm_inst *fi,
/* delete ourselves from the parent */
parent = fi->proc.parent;
- if (parent)
+ if (parent) {
LOGPFSMSRC(fi, file, line, "Removing from parent %s\n",
osmo_fsm_inst_name(parent));
- llist_del(&fi->proc.child);
+ llist_del(&fi->proc.child);
+ }
/* call destructor / clean-up function */
if (fi->fsm->cleanup)