Skip to content

[7.x.x] Fix a memory leak in the XPath 3.1 Arrow Operator implementation#174

Merged
adamretter merged 4 commits intodevelop-7.x.xfrom
7.x.x/hotfix/arrow-operator-memory-leak
Apr 28, 2026
Merged

[7.x.x] Fix a memory leak in the XPath 3.1 Arrow Operator implementation#174
adamretter merged 4 commits intodevelop-7.x.xfrom
7.x.x/hotfix/arrow-operator-memory-leak

Conversation

@adamretter
Copy link
Copy Markdown
Member

The Arrow Operator implementation previously did not free the reference to the Context Sequence on its left-side. This meant that it 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. Additionally there was also a possible resource leak if a Function Reference provided to the Arrow Operator was not of the expected cardinality, that is now fixed as well.

@adamretter adamretter added this to the elemental-7.5.1 milestone Mar 9, 2026
@adamretter adamretter added the bug Something isn't working label Mar 9, 2026
@cla-bot cla-bot Bot added the cla-signed label Mar 9, 2026
@adamretter adamretter changed the title Fix a memory leak in the XPath 3.1 Arrow Operator implementation [7.x.x] Fix a memory leak in the XPath 3.1 Arrow Operator implementation Mar 9, 2026
@adamretter adamretter merged commit 3b5db42 into develop-7.x.x Apr 28, 2026
13 of 15 checks passed
@adamretter adamretter deleted the 7.x.x/hotfix/arrow-operator-memory-leak branch April 28, 2026 11:45
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