We have freed the channel there is no subscriber associated anymore

FIXME: Introduce refcounting on the subscriber record. This looks like
a genuine memory leak to me.
This commit is contained in:
Holger Freyther 2008-12-31 18:52:54 +00:00
parent e97f7fba97
commit 41ed300aab
1 changed files with 1 additions and 0 deletions

View File

@ -185,6 +185,7 @@ struct gsm_lchan *lchan_alloc(struct gsm_bts *bts, enum gsm_chan_t type)
void lchan_free(struct gsm_lchan *lchan)
{
lchan->type = GSM_LCHAN_NONE;
lchan->subscr = 0;
/* stop the timer */
del_timer(&lchan->release_timer);