aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2013-05-08 18:25:02 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2013-06-24 08:02:20 +0200
commita7e75377767e86a3e5645c22239770b1939e9899 (patch)
tree84ee7f7d9f5f3dcca8db3b6da5a950d8f56786a0 /src
parentee43f46cb0334c75044c5ee706b7635c14c41a8c (diff)
lapd: Fix a +ptrsize memory leak for each opened lchan
The lapdm/lapd_core code needs to keep a history of messages sent. This history is not freed when lapdm_channel_reset is called and the init code will just allocate a new array. This means there is a memory leak on every released channel every time it is released.
Diffstat (limited to 'src')
-rw-r--r--src/common/rsl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/rsl.c b/src/common/rsl.c
index 5da9cd5c..6dca7417 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -777,7 +777,7 @@ static int rsl_rx_rf_chan_rel(struct gsm_lchan *lchan)
rc = bts_model_rsl_chan_rel(lchan);
- lapdm_channel_reset(&lchan->lapdm_ch);
+ lapdm_channel_exit(&lchan->lapdm_ch);
return rc;
}