tony2001 Fri Sep 15 07:44:20 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/dom element.c
Log:
MFH: free node pointer using correct function
fixes leak in ext/dom/tests/dom_create_element.phpt
http://cvs.php.net/viewvc.cgi/php-src/ext/dom/element.c?r1=1.36.2.4.2.3&r2=1.36.2.4.2.4&diff_format=u
Index: php-src/ext/dom/element.c
diff -u php-src/ext/dom/element.c:1.36.2.4.2.3
php-src/ext/dom/element.c:1.36.2.4.2.4
--- php-src/ext/dom/element.c:1.36.2.4.2.3 Mon Aug 28 23:36:23 2006
+++ php-src/ext/dom/element.c Fri Sep 15 07:44:20 2006
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: element.c,v 1.36.2.4.2.3 2006/08/28 23:36:23 rrichards Exp $ */
+/* $Id: element.c,v 1.36.2.4.2.4 2006/09/15 07:44:20 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -100,7 +100,7 @@
}
if (errorcode != 0) {
if (nodep != NULL) {
- xmlFree(nodep);
+ xmlFreeNode(nodep);
}
php_dom_throw_error(errorcode, 1 TSRMLS_CC);
RETURN_FALSE;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php