1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-27 03:21:26 +03:00

fixing a deallocation problem in xmlSchemaAddSchemaDoc() in case of

* xmlschemas.c: fixing a deallocation problem in xmlSchemaAddSchemaDoc()
  in case of errors, should fix bug #338303
Daniel
This commit is contained in:
Daniel Veillard 2006-04-13 07:50:11 +00:00
parent 3f845a99b9
commit cdf59aa58f
2 changed files with 5 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Thu Apr 13 09:47:25 CEST 2006 Daniel Veillard <daniel@veillard.com>
* xmlschemas.c: fixing a deallocation problem in xmlSchemaAddSchemaDoc()
in case of errors, should fix bug #338303
Thu Apr 13 09:31:45 CEST 2006 Daniel Veillard <daniel@veillard.com>
* relaxng.c: fixing a deallocation problem in xmlRelaxNGParse()

View File

@ -10556,8 +10556,6 @@ doc_load:
invokingNode, NULL,
"The document '%s' has no document element",
schemaLocation, NULL);
xmlFreeDoc(doc);
doc = NULL;
goto exit_error;
}
/*
@ -10572,8 +10570,6 @@ doc_load:
invokingNode, NULL,
"The XML document '%s' is not a schema document",
schemaLocation, NULL);
xmlFreeDoc(doc);
doc = NULL;
goto exit_error;
}
/*