]> granicus.if.org Git - php/commitdiff
doc should not be freed here, as it is used later in the code path.
authorDmitry Stogov <dmitry@php.net>
Fri, 18 Mar 2005 18:31:25 +0000 (18:31 +0000)
committerDmitry Stogov <dmitry@php.net>
Fri, 18 Mar 2005 18:31:25 +0000 (18:31 +0000)
ext/soap/php_schema.c

index 0fa5c4a08e0f2a408b81703f30bc34672c09bbca..1a7e4d413f636c4af2d468f35bc0f864b95f2235 100644 (file)
@@ -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) {