Fix memory leak when msre_op_validateSchema_execute exits normally (ValidateSchema)

This commit is contained in:
Nic Grant 2025-06-11 09:34:00 +01:00
parent 348005a7d6
commit cfbdc30ef1

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;
}