tony2001 Tue Apr 17 18:51:34 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/sapi/cgi cgi_main.c
Log:
MFH: fix leak appearing when more than one -f option specified
http://cvs.php.net/viewvc.cgi/php-src/sapi/cgi/cgi_main.c?r1=1.267.2.15.2.34&r2=1.267.2.15.2.35&diff_format=u
Index: php-src/sapi/cgi/cgi_main.c
diff -u php-src/sapi/cgi/cgi_main.c:1.267.2.15.2.34
php-src/sapi/cgi/cgi_main.c:1.267.2.15.2.35
--- php-src/sapi/cgi/cgi_main.c:1.267.2.15.2.34 Sun Apr 15 23:06:08 2007
+++ php-src/sapi/cgi/cgi_main.c Tue Apr 17 18:51:34 2007
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: cgi_main.c,v 1.267.2.15.2.34 2007/04/15 23:06:08 sniper Exp $ */
+/* $Id: cgi_main.c,v 1.267.2.15.2.35 2007/04/17 18:51:34 tony2001 Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -1478,6 +1478,9 @@
break;
case 'f': /* parse file */
+ if (script_file) {
+ efree(script_file);
+ }
script_file =
estrdup(php_optarg);
no_headers = 1;
/* arguments after the file are
considered script args */
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php