aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/lchan.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/lchan.c b/src/common/lchan.c
index 9f274098..c2b0144b 100644
--- a/src/common/lchan.c
+++ b/src/common/lchan.c
@@ -298,6 +298,11 @@ void lchan_set_state(struct gsm_lchan *lchan, enum gsm_lchan_state state)
lchan->rep_acch.dl_facch[1].msg = NULL;
msgb_free(lchan->rep_acch.dl_sacch_msg);
lchan->rep_acch.dl_sacch_msg = NULL;
+ /* free() pending messages */
+ msgb_free(lchan->pending_rel_ind_msg);
+ lchan->pending_rel_ind_msg = NULL;
+ msgb_free(lchan->pending_chan_activ);
+ lchan->pending_chan_activ = NULL;
/* fall through */
default:
if (lchan->early_rr_ia) {