mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Merge pull request #3401 from nic-prgs/ValidateSchema-memory-leak
Plug memory leak when msre_op_validateSchema_execute() exits normally (validateSchema)
This commit is contained in:
commit
c01e5db35b
@ -2898,6 +2898,7 @@ static int msre_op_validateSchema_execute(modsec_rec *msr, msre_rule *rule, msre
|
|||||||
|
|
||||||
xmlSchemaFree(schema);
|
xmlSchemaFree(schema);
|
||||||
xmlSchemaFreeValidCtxt(validCtx);
|
xmlSchemaFreeValidCtxt(validCtx);
|
||||||
|
xmlSchemaFreeParserCtxt(parserCtx);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user