diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2006-04-13 07:50:11 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2006-04-13 07:50:11 +0000 |
commit | cdf59aa58fd2e06a0b4619be7c8f1c7f40e58a24 (patch) | |
tree | e7de17cef47ede1ae7272a44dbc15dcd207917bc | |
parent | 3f845a99b984778269784281ab79489b251209f5 (diff) | |
download | libxml2-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | xmlschemas.c | 4 |
2 files changed, 5 insertions, 4 deletions
@@ -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; } /* |