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:
parent
e97f7fba97
commit
41ed300aab
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue