dmitry Fri Mar 18 13:31:25 2005 EDT
Modified files: (Branch: PHP_5_0)
/php-src/ext/soap php_schema.c
Log:
doc should not be freed here, as it is used later in the code path.
http://cvs.php.net/diff.php/php-src/ext/soap/php_schema.c?r1=1.49.2.1&r2=1.49.2.2&ty=u
Index: php-src/ext/soap/php_schema.c
diff -u php-src/ext/soap/php_schema.c:1.49.2.1
php-src/ext/soap/php_schema.c:1.49.2.2
--- php-src/ext/soap/php_schema.c:1.49.2.1 Thu Aug 26 14:36:46 2004
+++ php-src/ext/soap/php_schema.c Fri Mar 18 13:31:25 2005
@@ -17,7 +17,7 @@
| Dmitry Stogov <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
*/
-/* $Id: php_schema.c,v 1.49.2.1 2004/08/26 18:36:46 dmitry Exp $ */
+/* $Id: php_schema.c,v 1.49.2.2 2005/03/18 18:31:25 dmitry Exp $ */
#include "php_soap.h"
#include "libxml/uri.h"
@@ -135,7 +135,6 @@
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) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php