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; }