summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-05-04 15:35:37 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-11-12 16:05:05 +0100
commitf9d6a998c03d3877e85f03ee6d73c30303dcee48 (patch)
tree2b791b8cce4f2103bf7630aa3e2656dedd9f3d10
parent02932b1f53068defb2d7e2417e64f906f64a0863 (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 c1064ee..1e295f6 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -456,6 +456,8 @@ restart:
goto restart;
}
}
+
+ msc_subscr_con_free(conn);
}
void gsm0408_clear_all_trans(struct gsm_network *net, int protocol)