summaryrefslogtreecommitdiff
path: root/ext/soap/php_schema.c
diff options
context:
space:
mode:
authorGeorge Schlossnagle <gschlossnagle@php.net>2005-03-18 15:40:04 +0000
committerGeorge Schlossnagle <gschlossnagle@php.net>2005-03-18 15:40:04 +0000
commitd2731eb57577619549d7bde7c5edf1215c815aec (patch)
tree536465595ea8cdf263d04ad0b49ea033d98df1f3 /ext/soap/php_schema.c
parent6a74f0a1b07f74ce98ca6343df60fdd0e2ce96a2 (diff)
downloadphp-git-d2731eb57577619549d7bde7c5edf1215c815aec.tar.gz
doc should not be freed here, as it is used later in the code path.
Diffstat (limited to 'ext/soap/php_schema.c')
-rw-r--r--ext/soap/php_schema.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/soap/php_schema.c b/ext/soap/php_schema.c
index ef1bfbfc76..758f3bc43a 100644
--- a/ext/soap/php_schema.c
+++ b/ext/soap/php_schema.c
@@ -135,7 +135,6 @@ static void schema_load_file(sdlCtx *ctx, xmlAttrPtr ns, xmlChar *location, xmlA
new_tns = get_attribute(schema->properties, "targetNamespace");
if (new_tns == NULL) {
if (tns != NULL) {
- xmlFreeDoc(doc);
xmlSetProp(schema, "targetNamespace", tns->children->content);
}
} else if (tns != NULL && strcmp(tns->children->content,new_tns->children->content) != 0) {