dmitry Mon Jul 10 15:48:09 2006 UTC
Modified files:
/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.91&r2=1.92&diff_format=u
Index: php-src/ext/spl/spl_directory.c
diff -u php-src/ext/spl/spl_directory.c:1.91
php-src/ext/spl/spl_directory.c:1.92
--- php-src/ext/spl/spl_directory.c:1.91 Fri Apr 28 19:03:58 2006
+++ php-src/ext/spl/spl_directory.c Mon Jul 10 15:48:09 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spl_directory.c,v 1.91 2006/04/28 19:03:58 fmk Exp $ */
+/* $Id: spl_directory.c,v 1.92 2006/07/10 15:48:09 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