diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-05-08 18:25:02 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-06-24 08:02:20 +0200 |
commit | a7e75377767e86a3e5645c22239770b1939e9899 (patch) | |
tree | 84ee7f7d9f5f3dcca8db3b6da5a950d8f56786a0 | |
parent | ee43f46cb0334c75044c5ee706b7635c14c41a8c (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.
-rw-r--r-- | src/common/rsl.c | 2 |
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; } |