cvs: php-src(PHP_5_0) /ext/soap php_schema.c
| From: | Dmitry Stogov | Date: | Fri, 18 Mar 2005 18:31:25 +0000 |
| Subject: | cvs: php-src(PHP_5_0) /ext/soap php_schema.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-30996@lists.php.net to get a copy of this message | ||
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 <dmitry@zend.com> |
+----------------------------------------------------------------------+
*/
-/* $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) {