summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-05-04 15:35:37 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-03-09 18:34:16 +0100
commit7019399b420314efad688acaffb09bd47fe3411a (patch)
tree9704132fb3ff02670dc26c9c78131b32309c8a9c
parentd4b30d5c08c4f6f5a950e62aaf5b8a84a7ed45f8 (diff)
gsm0408_clear_request(): actually free the released conn
By having conn->in_release == 1, calling msc_release_connection() has no effect and thus never frees the conn. So, after all pending requests have been discarded, also discard and free the unused connection.
-rw-r--r--openbsc/src/libmsc/gsm_04_08.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/openbsc/src/libmsc/gsm_04_08.c b/openbsc/src/libmsc/gsm_04_08.c
index add0cca..38ef189 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -227,6 +227,8 @@ restart:
goto restart;
}
}
+
+ msc_subscr_con_free(conn);
}
/* clear all transactions globally; used in case of MNCC socket disconnect */