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-25 23:13:08 +0800 |
commit | 4ac100ec248c6431c12cae725b5759aed43066ea (patch) | |
tree | c28ab3e09d9688a7a003618da9b869de56d55c3e /openbsc | |
parent | 95c229006ef9e0a55139a3e80f6212189e4f4408 (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); } |