From: Anatol Belski Date: Mon, 21 Oct 2013 18:15:31 +0000 (-0700) Subject: fixed invalid free X-Git-Tag: php-5.6.0alpha1~211^2~8^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8591a52fab3fa6656669ed853466a01774398ed9;p=php fixed invalid free --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 221b002175..ec397bf3ae 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -815,7 +815,7 @@ static void php_cgi_ini_activate_user_config(char *path, int path_len, const cha } if (real_path) { - free(real_path); + efree(real_path); } entry->expires = request_time + PG(user_ini_cache_ttl); } @@ -1396,7 +1396,7 @@ static void init_request_info(fcgi_request *request TSRMLS_DC) } else { SG(request_info).request_uri = env_script_name; } - free(real_path); + efree(real_path); } } else { /* pre 4.3 behaviour, shouldn't be used but provides BC */