Calls xml init and xml cleanup to avoid memory leak

Fix #1553
This commit is contained in:
Felipe Zimmerle
2017-10-10 15:03:50 -03:00
parent 30364628a0
commit 41bf7f716b
3 changed files with 12 additions and 0 deletions

View File

@@ -140,6 +140,8 @@ bool ValidateSchema::evaluate(Transaction *t,
t->debug(4, "XML: Successfully validated payload against " \
"Schema: " + m_resource);
#endif
xmlSchemaFree(m_schema);
xmlSchemaFreeParserCtxt(m_parserCtx);
return false;
}