diff --git a/schematron.c b/schematron.c index 64ecbc4a..21e9956b 100644 --- a/schematron.c +++ b/schematron.c @@ -1048,7 +1048,7 @@ xmlSchematronParseRule(xmlSchematronParserCtxtPtr ctxt, return; } - let = (xmlSchematronLetPtr) malloc(sizeof(xmlSchematronLet)); + let = (xmlSchematronLetPtr) xmlMalloc(sizeof(xmlSchematronLet)); let->name = name; let->comp = var_comp; let->next = NULL;