1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

more memory related code cleanups. Daniel

* HTMLparser.c parser.c relaxng.c xmlschemas.c: more memory related
  code cleanups.
Daniel
This commit is contained in:
Daniel Veillard
2004-09-23 13:15:03 +00:00
parent 2248ff178b
commit 079f6a7559
5 changed files with 32 additions and 13 deletions

View File

@ -13103,6 +13103,7 @@ xmlSchemaRegisterAttributes(xmlSchemaValidCtxtPtr ctxt, xmlAttrPtr attrs)
xmlSchemaVErrMemory(ctxt, "registering attributes", NULL);
return (-1);
}
memset(tmp, 0, sizeof(xmlSchemaAttrState));
tmp->attr = attrs;
tmp->state = XML_SCHEMAS_ATTR_UNKNOWN;
tmp->next = NULL;