summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2006-04-13 07:50:11 +0000
committerDaniel Veillard <veillard@src.gnome.org>2006-04-13 07:50:11 +0000
commitcdf59aa58fd2e06a0b4619be7c8f1c7f40e58a24 (patch)
treee7de17cef47ede1ae7272a44dbc15dcd207917bc
parent3f845a99b984778269784281ab79489b251209f5 (diff)
downloadlibxml2-cdf59aa58fd2e06a0b4619be7c8f1c7f40e58a24.tar.gz
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
-rw-r--r--ChangeLog5
-rw-r--r--xmlschemas.c4
2 files changed, 5 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index de1ac0f3..a754b2e2 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 d64949d1..3fd72201 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -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;
}
/*