rrichards Sun May 4 15:13:40 2008 UTC Modified files: /php-src/ext/xsl xsltprocessor.c Log: fix bug #44891 Memory leak using registerPHPFunctions and XSLT Variable http://cvs.php.net/viewvc.cgi/php-src/ext/xsl/xsltprocessor.c?r1=1.63&r2=1.64&diff_format=u Index: php-src/ext/xsl/xsltprocessor.c diff -u php-src/ext/xsl/xsltprocessor.c:1.63 php-src/ext/xsl/xsltprocessor.c:1.64 --- php-src/ext/xsl/xsltprocessor.c:1.63 Tue Jan 29 21:21:04 2008 +++ php-src/ext/xsl/xsltprocessor.c Sun May 4 15:13:39 2008 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: xsltprocessor.c,v 1.63 2008/01/29 21:21:04 sebastian Exp $ */ +/* $Id: xsltprocessor.c,v 1.64 2008/05/04 15:13:39 rrichards Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -287,7 +287,9 @@ } break; default: - ZVAL_STRING(args[i], xmlXPathCastToString(obj), 1); + str = xmlXPathCastToString(obj); + ZVAL_STRING(args[i], str, 1); + xmlFree(str); } xmlXPathFreeObject(obj); fci.params[i] = &args[i];
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php