规范变量的定义; 支持关闭FS的相关统计,便于valgrind/asan定位内存的相关问题

This commit is contained in:
刘学利
2023-07-28 07:43:22 +00:00
committed by yangwei
parent 7cdcc95f79
commit 41c94038e9
2 changed files with 6 additions and 3 deletions

View File

@@ -2641,9 +2641,11 @@ extern "C" int TSG_MASTER_UNLOAD()
{
g_tsg_maat_feather=NULL;
ctemplate::Template::ClearCache();
//delete g_tsg_para.tpl_403;
//delete g_tsg_para.tpl_404;
//delete g_tsg_para.tpl_200;
//delete g_tsg_para.tpl_204;
tsg_sendlog_destroy(g_tsg_log_instance);
tsg_metric_destroy();

View File

@@ -1982,6 +1982,7 @@ struct maat *init_maat_feather(const char* conffile, char* instance_name, char *
void tsg_maat_rule_destroy(void)
{
maat_free(g_tsg_maat_feather);
g_tsg_maat_feather=NULL;
MESA_destroy_runtime_log_handle(g_tsg_maat_rt_para.logger);
g_tsg_maat_rt_para.logger = NULL;
}