diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-11 14:13:10 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-04-11 14:13:10 +0200 |
commit | 2bb518a3bd78cdce4d98d0b38dfa03bad6fdb04c (patch) | |
tree | c1b1df9b34e72a56bad5e9835a67eb1f071bf652 /openbsc | |
parent | 476940f747a03c58058527da20c0d0016f52857e (diff) |
[e1_input] When destroying a link clear all pending messages
Diffstat (limited to 'openbsc')
-rw-r--r-- | openbsc/src/e1_input.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openbsc/src/e1_input.c b/openbsc/src/e1_input.c index fba59a784..7ddd40559 100644 --- a/openbsc/src/e1_input.c +++ b/openbsc/src/e1_input.c @@ -420,7 +420,14 @@ e1inp_sign_link_create(struct e1inp_ts *ts, enum e1inp_sign_type type, void e1inp_sign_link_destroy(struct e1inp_sign_link *link) { + struct msgb *msg; + llist_del(&link->list); + while (!llist_empty(&link->tx_list)) { + msg = msgb_dequeue(&link->tx_list); + msgb_free(msg); + } + talloc_free(link); } |