aboutsummaryrefslogtreecommitdiffstats
path: root/tests/llc/LlcTest.cpp
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2023-04-17 18:23:56 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2023-04-20 16:17:39 +0200
commitfe7aee9302c6778494e024b77d9a870d8624a38d (patch)
tree448de5cbfd09355746802ea5c768c8657a6cedaf /tests/llc/LlcTest.cpp
parenteb0a0527e0a720fa9b0e351b5b38a8e46cb286e5 (diff)
ms: store in bts->ms_list during alloc/destroy of ms object
With this change the MS no longer is removed from the llist without potentially skipping free() if not idle in bts_ms_idle_cb(). As a result, some unit tests now can free it during bts tear down instead of having them leaked. The tests int MsTest need changes because the tbfs created are fake and cannot be freed using tbf_free(), and hence cannot be detached from MS using regular code paths. Instead first call explicit talloc_free(ms) like other unit tests in the file already do. Change-Id: Id53f8dfb9963366dd4b19a324615bbc83c4f23e7
Diffstat (limited to 'tests/llc/LlcTest.cpp')
0 files changed, 0 insertions, 0 deletions