Skip to content

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

Merged
airween merged 1 commit into
owasp-modsecurity:v2/masterfrom
nic-prgs:ValidateSchema-memory-leak
Jun 11, 2025
Merged

Plug memory leak when msre_op_validateSchema_execute() exits normally (validateSchema)#3401
airween merged 1 commit into
owasp-modsecurity:v2/masterfrom
nic-prgs:ValidateSchema-memory-leak

Conversation

@nic-prgs

Copy link
Copy Markdown

validateSchema rule leaks memory under normal exit

Add explicit xmlSchemaFreeParserCtxt call

Because sometimes memory is not an infinite resource

@sonarqubecloud

Copy link
Copy Markdown

@airween airween left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice catch, thanks!

@airween

airween commented Jun 11, 2025

Copy link
Copy Markdown
Member

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