]> granicus.if.org Git - php/commitdiff
doc should not be freed here, as it is used later in the code path.
authorGeorge Schlossnagle <gschlossnagle@php.net>
Fri, 18 Mar 2005 15:40:04 +0000 (15:40 +0000)
committerGeorge Schlossnagle <gschlossnagle@php.net>
Fri, 18 Mar 2005 15:40:04 +0000 (15:40 +0000)
ext/soap/php_schema.c

index ef1bfbfc76b8f243053bccce914740bf30a7a49a..758f3bc43a0791408981c4588e344cdebd04581f 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) {