tony2001 Tue Apr 17 18:51:24 2007 UTC
Modified files:
/php-src/sapi/cgi cgi_main.c
Log:
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.318&r2=1.319&diff_format=u
Index: php-src/sapi/cgi/cgi_main.c
diff -u php-src/sapi/cgi/cgi_main.c:1.318 php-src/sapi/cgi/cgi_main.c:1.319
--- php-src/sapi/cgi/cgi_main.c:1.318 Sun Apr 15 23:02:05 2007
+++ php-src/sapi/cgi/cgi_main.c Tue Apr 17 18:51:24 2007
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: cgi_main.c,v 1.318 2007/04/15 23:02:05 sniper Exp $ */
+/* $Id: cgi_main.c,v 1.319 2007/04/17 18:51:24 tony2001 Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -1409,6 +1409,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