From: Dmitry Stogov Date: Fri, 18 Mar 2005 18:31:25 +0000 (+0000) Subject: doc should not be freed here, as it is used later in the code path. X-Git-Tag: php-5.0.4RC2~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e4ea8305df3d26adfe3b848a3ba47ee3cf9fa6f;p=php doc should not be freed here, as it is used later in the code path. --- diff --git a/ext/soap/php_schema.c b/ext/soap/php_schema.c index 0fa5c4a08e..1a7e4d413f 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) {