summaryrefslogtreecommitdiff
path: root/infra/module_manager/test
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-09-25 17:44:27 +0800
committeryangwei <[email protected]>2024-09-25 17:44:27 +0800
commitc550acef84ee54915518f776a179901d94d481f4 (patch)
treefd16e33e504b2055728702ecd0f8216aaf20ec29 /infra/module_manager/test
parent154e727f07fd2e1a9544e1a3941865fe247bd011 (diff)
✨ feat(module manager): store spec path and cb name
Diffstat (limited to 'infra/module_manager/test')
-rw-r--r--infra/module_manager/test/gtest_module_manager_main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/infra/module_manager/test/gtest_module_manager_main.cpp b/infra/module_manager/test/gtest_module_manager_main.cpp
index 7f0dc9a..74aa611 100644
--- a/infra/module_manager/test/gtest_module_manager_main.cpp
+++ b/infra/module_manager/test/gtest_module_manager_main.cpp
@@ -39,6 +39,10 @@ TEST(module_manager_internal, module_specs_load) {
EXPECT_EQ(specs[0].on_init_cb, gtest_mock_init);
EXPECT_EQ(specs[0].on_exit_cb, gtest_mock_exit);
+
+ if(specs->path)free(specs->path);
+ if(specs->init_cb_name)free(specs->init_cb_name);
+ if(specs->exit_cb_name)free(specs->exit_cb_name);
free(specs);
toml_free(conf);