From 52e2c08f66e132eeb8bef39c9b7153114b190de7 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 9 May 2022 17:12:53 +0200 Subject: [PATCH] TbfTest: Reset MS timeout to 0 in test_tbf_dl_llc_loss() The timeout is set to a high value to avoid freeing the MS during main loop iteration. Let's set it back to 0 to have a common free path in test infrastructure. Change-Id: I6dc4765163fde1a46574b49f3185aea65391e0d0 --- tests/tbf/TbfTest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp index 585496af..116b2345 100644 --- a/tests/tbf/TbfTest.cpp +++ b/tests/tbf/TbfTest.cpp @@ -622,6 +622,8 @@ static void test_tbf_dl_llc_loss() fprintf(stderr, "=== end %s ===\n", __func__); + /* Restore MS release timeout to 0 to make sure it is freed immediately: */ + ms_set_timeout(ms, 0); TALLOC_FREE(the_pcu); }