cvs: php-src(PHP_4_3) /sapi/cgi cgi_main.c

From: Date: Mon, 19 Jan 2004 19:57:18 +0000
Subject: cvs: php-src(PHP_4_3) /sapi/cgi cgi_main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-25761@lists.php.net to get a copy of this message
helly Mon Jan 19 14:57:18 2004 EDT Modified files: (Branch: PHP_4_3) /php-src/sapi/cgi cgi_main.c Log: Fix a memleak http://cvs.php.net/diff.php/php-src/sapi/cgi/cgi_main.c?r1=1.190.2.52&r2=1.190.2.53&ty=u Index: php-src/sapi/cgi/cgi_main.c diff -u php-src/sapi/cgi/cgi_main.c:1.190.2.52 php-src/sapi/cgi/cgi_main.c:1.190.2.53 --- php-src/sapi/cgi/cgi_main.c:1.190.2.52 Tue Jan 13 04:13:37 2004 +++ php-src/sapi/cgi/cgi_main.c Mon Jan 19 14:57:17 2004 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: cgi_main.c,v 1.190.2.52 2004/01/13 09:13:37 derick Exp $ */ +/* $Id: cgi_main.c,v 1.190.2.53 2004/01/19 19:57:17 helly Exp $ */ #include "php.h" #include "php_globals.h" @@ -1439,6 +1439,9 @@ if (script_file) { /* override path_translated if -f on command line */ + if (SG(request_info).path_translated) { + STR_FREE(SG(request_info).path_translated); + } SG(request_info).path_translated = script_file; }

« previous php.cvs (#25761) next »