feat(module manager): store spec path and cb name

This commit is contained in:
yangwei
2024-09-25 17:44:27 +08:00
parent 154e727f07
commit c550acef84
3 changed files with 13 additions and 3 deletions

View File

@@ -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);