aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@soleta.eu>2015-07-21 10:46:41 +0200
committerPablo Neira Ayuso <pablo@soleta.eu>2015-07-21 11:05:41 +0200
commit41d5c3081a3a97a5e18ce8bb2599a76fe399152e (patch)
tree3ff0f20701291f33e3b2dc1a76c6137ab8b0ed7c
parente1aefad278de2ca9cc410cf6de6752424097c063 (diff)
tests: osmux: fix msgb leaks
-rw-r--r--tests/osmux/osmux_test.c2
1 files changed, 2 insertions, 0 deletions
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 = {