aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo_msc.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-09-16 20:48:15 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-09-16 20:53:04 +0800
commitaaa40b868896b77f47890c0b21fe4a6baa34adb6 (patch)
treedd2c7391b5abf2b490b49266e7414b7d045feee0 /openbsc/src/osmo_msc.c
parent2f9d1ef39ac66acfe7796db985377ef80a627d82 (diff)
bsc_api: Do not free the subscriber conn on clear and clear request
Do not free the GSM Subscriber Connection when a channel is failing or if a clear is requested, instead just give up _all_ the channels, reset them to NULL and free the remaining channels.
Diffstat (limited to 'openbsc/src/osmo_msc.c')
-rw-r--r--openbsc/src/osmo_msc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/osmo_msc.c b/openbsc/src/osmo_msc.c
index 6543a61dc..97f36f54e 100644
--- a/openbsc/src/osmo_msc.c
+++ b/openbsc/src/osmo_msc.c
@@ -92,4 +92,5 @@ void msc_release_connection(struct gsm_subscriber_connection *conn)
/* no more connections, asking to release the channel */
conn->in_release = 1;
gsm0808_clear(conn);
+ subscr_con_free(conn);
}