Skip to content

[7.x.x] Fix a memory leak in XPath 3.1 inline function implementation#176

Merged
adamretter merged 2 commits intodevelop-7.x.xfrom
7.x.x/hotfix/inline-function-memory-leak
Apr 28, 2026
Merged

[7.x.x] Fix a memory leak in XPath 3.1 inline function implementation#176
adamretter merged 2 commits intodevelop-7.x.xfrom
7.x.x/hotfix/inline-function-memory-leak

Conversation

@adamretter
Copy link
Copy Markdown
Member

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 force-pushed the 7.x.x/hotfix/inline-function-memory-leak branch from 4bff560 to 9917e1f Compare April 28, 2026 11:55
@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Apr 28, 2026

Not up to standards ⛔

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@adamretter adamretter merged commit 95ebbe3 into develop-7.x.x Apr 28, 2026
11 of 14 checks passed
@adamretter adamretter deleted the 7.x.x/hotfix/inline-function-memory-leak branch April 28, 2026 12:49
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