doc should not be freed here, as it is used later in the code path.

This commit is contained in:
George Schlossnagle 2005-03-18 15:40:04 +00:00
parent 6a74f0a1b0
commit d2731eb575

View 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) {