Skip to content

Commit 6956f62

Browse files
committed
[bugfix] Ensure that Lookup#keys is null'ed so that memory is not leaked if the query is cached for reuse
Closes eXist-db/exist#5375
1 parent cd89692 commit 6956f62

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

exist-core/src/main/java/org/exist/xquery/Lookup.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ public void resetState(final boolean postOptimization) {
200200
}
201201

202202
if (keyExpression != null) {
203+
keys = null;
203204
keyExpression.resetState(postOptimization);
204205
}
205206
}

0 commit comments

Comments
 (0)