Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

[6.x.x] Fix a memory leak in XPath 3.1 inline function implementation#177

Open
adamretter wants to merge 2 commits intodevelop-6.x.xfrom
6.x.x/hotfix/inline-function-memory-leak
Open

[6.x.x] Fix a memory leak in XPath 3.1 inline function implementation#177
adamretter wants to merge 2 commits intodevelop-6.x.xfrom
6.x.x/hotfix/inline-function-memory-leak

Conversation

@adamretter
Copy link
Member

@adamretter adamretter commented Mar 9, 2026

Backport of #176

The Inline Function implementation previously accumulated references to function calls that closed over in-scope global or local variables. This meant that they 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.

…losures, and that these are not leaked if the query is cached for reuse
@adamretter adamretter added this to the elemental-6.9.1 milestone Mar 9, 2026
@adamretter adamretter self-assigned this 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
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