summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-05-04 15:35:37 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-05-04 16:06:59 +0200
commitc3da27fa983272d25a1f7fe8b53fac6ebf2c7cbd (patch)
tree594f3ed0a43922927b0583ff6dc353356af03b50
parentbfc190e0fc5c6d86f7bc84b26eaa94995674dbc0 (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 f48bada..1c1a7ef 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -453,6 +453,8 @@ restart:
goto restart;
}
}
+
+ msc_subscr_con_free(conn);
}
void gsm0408_clear_all_trans(struct gsm_network *net, int protocol)