Skip to content

[6.x.x] Fix a memory leak in the XPath 3.1 Lookup Operator implementation#183

Merged
adamretter merged 2 commits intodevelop-6.x.xfrom
6.x.x/hotfix/lookup-operator-memory-leak
Apr 28, 2026
Merged

[6.x.x] Fix a memory leak in the XPath 3.1 Lookup Operator implementation#183
adamretter merged 2 commits intodevelop-6.x.xfrom
6.x.x/hotfix/lookup-operator-memory-leak

Conversation

@adamretter
Copy link
Copy Markdown
Member

Backport of #182

The Lookup Operator implementation previously did not free the reference to its lookup keys. This meant that its keys would be kept in-memory if the compiled query was sent to the XQuery Pool for reuse. This PR fixes that issue so that the memory is correctly freed when the query completes execution.

When combined with #177 this closes eXist-db/exist#5375

@adamretter adamretter added this to the elemental-6.9.1 milestone Mar 10, 2026
@adamretter adamretter self-assigned this Mar 10, 2026
@adamretter adamretter added the bug Something isn't working label Mar 10, 2026
@cla-bot cla-bot Bot added the cla-signed label Mar 10, 2026
@adamretter adamretter merged commit b10a058 into develop-6.x.x Apr 28, 2026
10 of 13 checks passed
@adamretter adamretter deleted the 6.x.x/hotfix/lookup-operator-memory-leak branch April 28, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cla-signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant