summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author郑超 <[email protected]>2018-10-15 17:25:04 +0800
committer郑超 <[email protected]>2018-10-15 17:25:04 +0800
commit1376d2c9e6cc0961ddd226824ad6f11a2cd77061 (patch)
tree757c3bfeaf3a975baaf07b37e5c1a13b7f1b1535
parentd6c557dd53bffe96f409e3202a515aa0a9baebcf (diff)
parent5eeb3aedb04f8e6b675b7354d7a5458666eedf8a (diff)
Merge branch 'bugfix-memory-leakage-find-by-yulingjing' into 'master'
修复内存泄漏 See merge request MESA_framework/maat!8
-rw-r--r--src/entry/Maat_rule.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/entry/Maat_rule.cpp b/src/entry/Maat_rule.cpp
index ae51562..adefe75 100644
--- a/src/entry/Maat_rule.cpp
+++ b/src/entry/Maat_rule.cpp
@@ -912,7 +912,8 @@ void* create_bool_matcher(MESA_htable_handle compile_hash,int thread_num,void* l
if(q_cnt==0)
{
MESA_handle_runtime_log(logger,RLOG_LV_INFO,maat_module,
- "No compile rule to build a bool matcher.");
+ "No compile rule to build a bool matcher.");
+ MESA_lqueue_destroy(update_q,lqueue_destroy_cb,NULL);
return NULL;
}
set_array=(universal_bool_expr_t*)malloc(sizeof(universal_bool_expr_t)*q_cnt);