From 41ed300aabfb341482f0255f19f320a9e4882540 Mon Sep 17 00:00:00 2001 From: Holger Freyther Date: Wed, 31 Dec 2008 18:52:54 +0000 Subject: [PATCH] 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. --- src/chan_alloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/chan_alloc.c b/src/chan_alloc.c index d76c92913..2520ce5cc 100644 --- a/src/chan_alloc.c +++ b/src/chan_alloc.c @@ -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);