]> granicus.if.org Git - php/commitdiff
MFH: plug leak
authorAntony Dovgal <tony2001@php.net>
Wed, 3 May 2006 19:40:58 +0000 (19:40 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 3 May 2006 19:40:58 +0000 (19:40 +0000)
sapi/cgi/cgi_main.c

index 2aaae382f09dc068299ff52dd45967b5dc6ad68e..00efce21e130ebcdfc0afe3fb96cbedf649e6872 100644 (file)
@@ -1468,6 +1468,7 @@ consult the installation file that came with this distribution, or visit \n\
 
                        if (script_file) {
                                /* override path_translated if -f on command line */
+                               STR_FREE(SG(request_info).path_translated);
                                SG(request_info).path_translated = script_file;
                        }