]> granicus.if.org Git - php/commitdiff
Fix a memleak
authorMarcus Boerger <helly@php.net>
Mon, 19 Jan 2004 19:57:17 +0000 (19:57 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 19 Jan 2004 19:57:17 +0000 (19:57 +0000)
sapi/cgi/cgi_main.c

index 2d01040a58f99b2ab9480b1b028193b2941a0632..2c8946cae2a0ae6b6f9ae26b21688f59e54217a5 100644 (file)
@@ -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;
                        }