aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-07 02:00:32 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-07 02:00:32 +0800
commit71f4f355fadfbb2e32f143ae7bc9fd308bd0f195 (patch)
tree70b66a3d768e4cd6abc424bb13e0cd7b85a8d6f2 /src
parent43d9eec14b9ec59f19a95b864ace7fb798724e2e (diff)
msc: Use the msc function to clear the queue
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index a632a7c..fcaccbd 100644
--- a/src/main.c
+++ b/src/main.c
@@ -358,10 +358,7 @@ void release_bsc_resources(struct bsc_data *bsc)
}
/* clear pending messages from the MSC */
- while (!llist_empty(&bsc->link.the_link->pending_msgs)) {
- struct msgb *msg = msgb_dequeue(&bsc->link.the_link->pending_msgs);
- msgb_free(msg);
- }
+ msc_clear_queue(bsc);
}
void bsc_link_down(struct link_data *data)