summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author刘学利 <[email protected]>2023-07-28 07:43:22 +0000
committeryangwei <[email protected]>2023-07-30 21:22:08 +0800
commit41c94038e9fc044c7560fecea859571a03301b64 (patch)
tree1166258e58902ff47f0198f53ae45421d382c92a /src
parent7cdcc95f798efd11e4575d63028e0501d3cd8305 (diff)
规范变量的定义; 支持关闭FS的相关统计,便于valgrind/asan定位内存的相关问题
Diffstat (limited to 'src')
-rw-r--r--src/tsg_entry.cpp8
-rw-r--r--src/tsg_rule.cpp1
2 files changed, 6 insertions, 3 deletions
diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp
index 31dca52..c082489 100644
--- a/src/tsg_entry.cpp
+++ b/src/tsg_entry.cpp
@@ -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();
diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp
index f0f2f30..325f977 100644
--- a/src/tsg_rule.cpp
+++ b/src/tsg_rule.cpp
@@ -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;
}