diff options
| author | yangwei <[email protected]> | 2023-07-26 23:37:43 +0800 |
|---|---|---|
| committer | yangwei <[email protected]> | 2023-07-26 23:37:43 +0800 |
| commit | 76f935b49f366c18cc509d1133a63ad16eace722 (patch) | |
| tree | bb2a4429f00e781c5e9da28f782b1202601bdbf5 /src/tsg_rule.cpp | |
| parent | e41c90c5f53edfcdb8824b15b7207e8df94bc34a (diff) | |
🐞 fix(TSG_MASTER_UNLOAD): 卸载插件时,释放INIT阶段申请的所有内存
Diffstat (limited to 'src/tsg_rule.cpp')
| -rw-r--r-- | src/tsg_rule.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tsg_rule.cpp b/src/tsg_rule.cpp index 1c43ae7..f0f2f30 100644 --- a/src/tsg_rule.cpp +++ b/src/tsg_rule.cpp @@ -1979,6 +1979,13 @@ struct maat *init_maat_feather(const char* conffile, char* instance_name, char * return maat_new(opts, table_info); } +void tsg_maat_rule_destroy(void) +{ + maat_free(g_tsg_maat_feather); + MESA_destroy_runtime_log_handle(g_tsg_maat_rt_para.logger); + g_tsg_maat_rt_para.logger = NULL; +} + int tsg_maat_rule_init(const char* conffile) { int log_level=30; |
