* lchan_free() the channels that we RF_CHAN_RELEASE

This commit is contained in:
Harald Welte 2008-12-27 11:13:36 +00:00
parent 32636e8910
commit 9524e34ee4
1 changed files with 3 additions and 0 deletions

View File

@ -544,6 +544,8 @@ static int abis_rsl_rx_dchan(struct msgb *msg)
case RSL_MT_CONN_FAIL:
DEBUGP(DRSL, "rsl_rx_dchan: Connection Fail, release channel\n");
rc = rsl_chan_release(msg->lchan);
/* FIXME: only free it after channel release ACK */
lchan_free(msg->lchan);
break;
case RSL_MT_MEAS_RES:
DEBUGP(DRSL, "rsl_rx_dchan: Measurement Result\n");
@ -752,6 +754,7 @@ static int abis_rsl_rx_rll(struct msgb *msg)
case RSL_MT_REL_IND:
DEBUGP(DRLL, "RELEASE INDICATION chan_nr=0x%02x\n", rllh->chan_nr);
rc = rsl_chan_release(msg->lchan);
/* FIXME: only free it after channel release ACK */
lchan_free(msg->lchan);
break;
case RSL_MT_ERROR_IND: