Skip to content

Commit

Permalink
fix:Aviator内存泄漏问题
Browse files Browse the repository at this point in the history
  • Loading branch information
duoyu-app committed Nov 1, 2024
1 parent e5be0f9 commit 2e2ee37
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public boolean executeExpression(String expression) {
if(StringUtils.isEmpty(expression)){
return true;
}
Expression compiledExp = aviatorEvaluatorInstance.compile(expression);
Expression compiledExp = aviatorEvaluatorInstance.compile(expression, true);
List<String> variableKeys = compiledExp.getVariableNames();
Map<String, Object> env = new HashMap<>(8);
for (String key : variableKeys){
Expand Down

0 comments on commit 2e2ee37

Please sign in to comment.