summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmgcp/rtp_helper.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-08-30 13:54:44 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-08-30 15:04:16 +0200
commitde51b57c9111f195b342c63121c6471863f89772 (patch)
tree8eb455cbbdded1f8502d9cd4062f8451062cf8cf /openbsc/src/libmgcp/rtp_helper.c
parent7217ee6c71629632281293219d80f71f69bbc128 (diff)
mgcp: Work on compress/uncompress on a per endpoint usage...
Diffstat (limited to 'openbsc/src/libmgcp/rtp_helper.c')
-rw-r--r--openbsc/src/libmgcp/rtp_helper.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/openbsc/src/libmgcp/rtp_helper.c b/openbsc/src/libmgcp/rtp_helper.c
index 0ad895d72..d1c356cd0 100644
--- a/openbsc/src/libmgcp/rtp_helper.c
+++ b/openbsc/src/libmgcp/rtp_helper.c
@@ -221,11 +221,7 @@ static int read_compressed_big(struct msgb *msg,
return 0;
clean_all:
- while (llist_empty(list)) {
- struct msgb *msg = msgb_dequeue(list);
- talloc_free(msg);
- }
-
+ mgcp_msgb_clear_queue(list);
return -8;
}
@@ -276,11 +272,7 @@ static int read_compressed_slim(struct msgb *msg,
return 0;
clean_all:
- while (llist_empty(list)) {
- struct msgb *msg = msgb_dequeue(list);
- talloc_free(msg);
- }
-
+ mgcp_msgb_clear_queue(list);
return -8;
}