修复统计、布尔表达式运算、单元测试模块中的内存泄漏。

This commit is contained in:
zhengchao
2018-11-27 14:37:13 +08:00
parent be7290d1e3
commit a92967aa3f
6 changed files with 24 additions and 16 deletions

View File

@@ -252,6 +252,7 @@ void boolexpr_destroy(void * instance)
for(unsigned int i=0; i<matcher->max_thread_num; i++)
{
delete [] matcher->thread_data[i].bitmap;
delete [] matcher->thread_data[i].matched_bitmap;
}
delete [] matcher->thread_data;
delete matcher;