Skip to content

Plug memory leak when msre_op_validateSchema_execute() exits normally (validateSchema) #3401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

nic-prgs
Copy link

validateSchema rule leaks memory under normal exit

Add explicit xmlSchemaFreeParserCtxt call

Because sometimes memory is not an infinite resource

Copy link

Copy link
Member

@airween airween left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, thanks!

@airween
Copy link
Member

airween commented Jun 11, 2025

Thanks @nic-prgs!

Fortunately, v3 does not affected by this issue.

@airween airween merged commit c01e5db into owasp-modsecurity:v2/master Jun 11, 2025
82 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants