diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-30 12:58:14 +0800 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-06-30 13:02:08 +0800 |
commit | f2553a6c3a9c677f71fd7f123c54d80a915f7a0a (patch) | |
tree | 51d5c3b09e5f367be10225b55335ae427afae705 /openbsc/src/chan_alloc.c | |
parent | 0610947f4cb0efd7f68e3e0e8df3663f0cdd64e5 (diff) |
handover: Call bsc_handover_clear from gsm0808_clear
The bsc_handover_clear will release an in-progress handover
and free the lchana and the data associated with this handover
Diffstat (limited to 'openbsc/src/chan_alloc.c')
-rw-r--r-- | openbsc/src/chan_alloc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/openbsc/src/chan_alloc.c b/openbsc/src/chan_alloc.c index 675cbbb1d..dda5ff20d 100644 --- a/openbsc/src/chan_alloc.c +++ b/openbsc/src/chan_alloc.c @@ -478,13 +478,8 @@ void subscr_con_free(struct gsm_subscriber_connection *conn) } - /* Release a handover that might be in operation */ - if (conn->ho_lchan) { - conn->ho_lchan->conn = NULL; - lchan_release(conn->ho_lchan, 0, 1); - conn->ho_lchan = NULL; - } - + if (conn->ho_lchan) + LOGP(DNM, LOGL_ERROR, "The ho_lchan should have been cleared.\n"); lchan = conn->lchan; talloc_free(conn); |