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

index b01902f39a7ff2c398643a096956d64fbee60d89..3ca5ab6aff4898d250cb732d3ba3974d8ec12885 100644 (file)
@@ -1408,6 +1408,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;
                                }