summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2016-05-04 15:35:37 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-02-23 22:27:38 +0100
commitdcf4f8a049d0254fac46d975fefc29e685caca14 (patch)
tree1b3e0660da517cbd988c5695718c3950835645d6
parentfbe616a3d8d3aba387a7140a986d866614a9c035 (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 7c5da26fb..7fafae22b 100644
--- a/openbsc/src/libmsc/gsm_04_08.c
+++ b/openbsc/src/libmsc/gsm_04_08.c
@@ -458,6 +458,8 @@ restart:
goto restart;
}
}
+
+ msc_subscr_con_free(conn);
}
void gsm0408_clear_all_trans(struct gsm_network *net, int protocol)