dmitry Mon Jul 10 15:47:58 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/spl spl_directory.c
Log:
Fixed memory leaks in ext/spl/tests/fileobject_003.phpt
http://cvs.php.net/viewvc.cgi/php-src/ext/spl/spl_directory.c?r1=1.45.2.27.2.1&r2=1.45.2.27.2.2&diff_format=u
Index: php-src/ext/spl/spl_directory.c
diff -u php-src/ext/spl/spl_directory.c:1.45.2.27.2.1
php-src/ext/spl/spl_directory.c:1.45.2.27.2.2
--- php-src/ext/spl/spl_directory.c:1.45.2.27.2.1 Wed May 10 00:31:04 2006
+++ php-src/ext/spl/spl_directory.c Mon Jul 10 15:47:58 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spl_directory.c,v 1.45.2.27.2.1 2006/05/10 00:31:04 helly Exp $ */
+/* $Id: spl_directory.c,v 1.45.2.27.2.2 2006/07/10 15:47:58 dmitry Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -254,8 +254,8 @@
switch (source->type) {
case SPL_FS_INFO:
- source->path_len = source->path_len;
- source->path = estrndup(source->path, source->path_len);
+ intern->path_len = source->path_len;
+ intern->path = estrndup(source->path, source->path_len);
intern->file_name_len = source->file_name_len;
intern->file_name = estrndup(source->file_name,
intern->file_name_len);
break;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php