diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index b01902f39a7..3ca5ab6aff4 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -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; }