[PATCH libosmo-netif 18/18] tests: osmux: iterate 64 times in osmo_test_loop()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

pablo at gnumonks.org pablo at gnumonks.org
Tue Jul 21 14:23:33 UTC 2015


From: Pablo Neira Ayuso <pablo at soleta.eu>

Instead of 63, this resolves major "definitely lost" remaining leak that
valgrind reports regarding msgb.
---
 tests/osmux/osmux_test.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/osmux/osmux_test.c b/tests/osmux/osmux_test.c
index 9ceabcd..94b95de 100644
--- a/tests/osmux/osmux_test.c
+++ b/tests/osmux/osmux_test.c
@@ -122,7 +122,7 @@ static void osmux_test_loop(int ccid)
 	uint16_t seq;
 	int i, j, k = 0;
 
-	for (i = 1; i < 64; i++) {
+	for (i = 1; i < 65; i++) {
 		msg = msgb_alloc(1500, "test");
 		if (!msg)
 			exit(EXIT_FAILURE);
-- 
1.7.10.4




More information about the OpenBSC mailing list