From d2731eb57577619549d7bde7c5edf1215c815aec Mon Sep 17 00:00:00 2001 From: George Schlossnagle Date: Fri, 18 Mar 2005 15:40:04 +0000 Subject: doc should not be freed here, as it is used later in the code path. --- ext/soap/php_schema.c | 1 - 1 file changed, 1 deletion(-) (limited to 'ext/soap/php_schema.c') 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) { -- cgit v1.2.1