summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Francois Dionne <jf.dionne@nutaq.com>2017-03-02 10:45:53 -0500
committerHarald Welte <laforge@gnumonks.org>2017-12-10 14:31:12 +0000
commit893979cb08848aed23cc542ca73db8ce268143aa (patch)
tree1a3d1bbb1f97726bab661a2d3814838ef636cdeb
parenta99e110106cb1d2a7b25d74585e704c1bd73db76 (diff)
Fix LAPD UA msgb memory leak.
Change-Id: Ia4f0606810e00aa6f1779d11893e4acc01976f9a
-rw-r--r--src/gsm/lapd_core.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gsm/lapd_core.c b/src/gsm/lapd_core.c
index 1f1ca83e..48476266 100644
--- a/src/gsm/lapd_core.c
+++ b/src/gsm/lapd_core.c
@@ -307,6 +307,9 @@ void lapd_dl_init(struct lapd_datalink *dl, uint8_t k, uint8_t v_range,
/* reset to IDLE state */
void lapd_dl_reset(struct lapd_datalink *dl)
{
+ LOGP(DLLAPD, LOGL_INFO, "Resetting LAPDm instance\n");
+ /* enter idle state (and remove eventual cont_res) */
+ lapd_dl_newstate(dl, LAPD_STATE_IDLE);
/* flush buffer */
lapd_dl_flush_tx(dl);
lapd_dl_flush_send(dl);