1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 03:55:04 +03:00

schematron: Use xmlMalloc

This commit is contained in:
Nick Wellnhofer 2024-07-16 00:21:22 +02:00
parent a87944e970
commit ff39f28bd7

View File

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