From 893979cb08848aed23cc542ca73db8ce268143aa Mon Sep 17 00:00:00 2001 From: Jean-Francois Dionne Date: Thu, 2 Mar 2017 10:45:53 -0500 Subject: Fix LAPD UA msgb memory leak. Change-Id: Ia4f0606810e00aa6f1779d11893e4acc01976f9a --- src/gsm/lapd_core.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3