From: Marcus Boerger Date: Mon, 19 Jan 2004 19:57:17 +0000 (+0000) Subject: Fix a memleak X-Git-Tag: php-4.3.5RC2~60 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=331b6605c338709a17fbc19ce8ab6277b0043bc4;p=php Fix a memleak --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 2d01040a58..2c8946cae2 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -1439,6 +1439,9 @@ consult the installation file that came with this distribution, or visit \n\ 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; }