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:
Ervin Hegedus
2025-06-11 21:19:40 +02:00
committed by GitHub

View File

@@ -2898,6 +2898,7 @@ static int msre_op_validateSchema_execute(modsec_rec *msr, msre_rule *rule, msre
xmlSchemaFree(schema);
xmlSchemaFreeValidCtxt(validCtx);
xmlSchemaFreeParserCtxt(parserCtx);
return 0;
}