pajoye Sun, 31 Jan 2010 15:22:17 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=294265
Log:
- fix leak
Changed paths:
U php/php-src/branches/PHP_5_3/TSRM/tsrm_win32.c
U php/php-src/trunk/TSRM/tsrm_win32.c
Modified: php/php-src/branches/PHP_5_3/TSRM/tsrm_win32.c
===================================================================
--- php/php-src/branches/PHP_5_3/TSRM/tsrm_win32.c 2010-01-31 07:41:47 UTC
(rev 294264)
+++ php/php-src/branches/PHP_5_3/TSRM/tsrm_win32.c 2010-01-31 15:22:17 UTC
(rev 294265)
@@ -223,11 +223,13 @@
}
if(access(pathname, mode)) {
+ free(real_path);
return errno;
}
/* If only existence check is made, return now */
if (mode == 0) {
+ free(real_path);
return 0;
}
Modified: php/php-src/trunk/TSRM/tsrm_win32.c
===================================================================
--- php/php-src/trunk/TSRM/tsrm_win32.c 2010-01-31 07:41:47 UTC (rev 294264)
+++ php/php-src/trunk/TSRM/tsrm_win32.c 2010-01-31 15:22:17 UTC (rev 294265)
@@ -223,11 +223,13 @@
}
if(access(pathname, mode)) {
+ free(real_path);
return errno;
}
/* If only existence check is made, return now */
if (mode == 0) {
+ free(real_path);
return 0;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php