From c32a9a873dac262858b8ef3dcadf3959ce7ea25f Mon Sep 17 00:00:00 2001 From: zhengchao Date: Fri, 18 May 2018 17:17:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=80=E6=AF=81maat?= =?UTF-8?q?=E5=8F=A5=E6=9F=84=E6=97=B6=EF=BC=8C=E5=AF=B9=E5=9B=9E=E8=B0=83?= =?UTF-8?q?=E8=A1=A8=E7=BC=93=E5=AD=98=E8=A1=8C=E7=9A=84double=20free?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/entry/Maat_rule.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/src/entry/Maat_rule.cpp b/src/entry/Maat_rule.cpp index 35bb606..c067922 100644 --- a/src/entry/Maat_rule.cpp +++ b/src/entry/Maat_rule.cpp @@ -30,7 +30,7 @@ #include "stream_fuzzy_hash.h" #include "gram_index_engine.h" -int MAAT_FRAME_VERSION_2_1_20180424=1; +int MAAT_FRAME_VERSION_2_1_20180518=1; const char* CHARSET_STRING[]={"NONE","gbk","big5","unicode","utf8","bin", "unicode_ascii_esc","unicode_ascii_aligned","unicode_ncr_dec","unicode_ncr_hex","url_encode_gb2312","url_encode_utf8",""}; @@ -3286,24 +3286,13 @@ void *thread_rule_monitor(void *arg) MESA_lqueue_destroy(feather->garbage_q,lqueue_destroy_cb,NULL); FS_stop(&(feather->stat_handle)); - int i=0,j=0; - struct dynamic_array_t* d_array=NULL; - char* lines=NULL; + int i=0; for(i=0;ip_table_info[i]==NULL) { continue; } - if(feather->p_table_info[i]->table_type==TABLE_TYPE_PLUGIN) - { - d_array=feather->p_table_info[i]->cb_info->cache_lines; - for(j=0;jp_table_info[i]->cb_info->cache_line_num;j++) - { - lines=(char*)dynamic_array_read(d_array, j); - free(lines); - } - } destroy_table_info(feather->p_table_info[i]); feather->p_table_info[i]=NULL; }