From 41d5c3081a3a97a5e18ce8bb2599a76fe399152e Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 21 Jul 2015 10:46:41 +0200 Subject: tests: osmux: fix msgb leaks --- tests/osmux/osmux_test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/osmux/osmux_test.c') diff --git a/tests/osmux/osmux_test.c b/tests/osmux/osmux_test.c index 7cc838d..9ceabcd 100644 --- a/tests/osmux/osmux_test.c +++ b/tests/osmux/osmux_test.c @@ -78,6 +78,7 @@ static void tx_cb(struct msgb *msg, void *data) } rtp_pkts--; + msgb_free(msg); } static struct osmux_out_handle h_output; @@ -98,6 +99,7 @@ static void osmux_deliver(struct msgb *batch_msg, void *data) osmux_xfrm_output(osmuxh, &h_output, &list); osmux_tx_sched(&list, tx_cb, NULL); } + msgb_free(batch_msg); } struct osmux_in_handle h_input = { -- cgit v1.2.3