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
diff --git a/ChangeLog b/ChangeLog
index de1ac0f..a754b2e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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()
diff --git a/xmlschemas.c b/xmlschemas.c
index d64949d..3fd7220 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -10556,8 +10556,6 @@
invokingNode, NULL,
"The document '%s' has no document element",
schemaLocation, NULL);
- xmlFreeDoc(doc);
- doc = NULL;
goto exit_error;
}
/*
@@ -10572,8 +10570,6 @@
invokingNode, NULL,
"The XML document '%s' is not a schema document",
schemaLocation, NULL);
- xmlFreeDoc(doc);
- doc = NULL;
goto exit_error;
}
/*