From 41c94038e9fc044c7560fecea859571a03301b64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=AD=A6=E5=88=A9?= Date: Fri, 28 Jul 2023 07:43:22 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E8=8C=83=E5=8F=98=E9=87=8F=E7=9A=84?= =?UTF-8?q?=E5=AE=9A=E4=B9=89;=20=E6=94=AF=E6=8C=81=E5=85=B3=E9=97=ADFS?= =?UTF-8?q?=E7=9A=84=E7=9B=B8=E5=85=B3=E7=BB=9F=E8=AE=A1=EF=BC=8C=E4=BE=BF?= =?UTF-8?q?=E4=BA=8Evalgrind/asan=E5=AE=9A=E4=BD=8D=E5=86=85=E5=AD=98?= =?UTF-8?q?=E7=9A=84=E7=9B=B8=E5=85=B3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_entry.cpp | 8 +++++--- src/tsg_rule.cpp | 1 + 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; }