com php-src: fixed invalid free: sapi/cgi/cgi_main.c

From: Date: Mon, 21 Oct 2013 18:15:31 +0000
Subject: com php-src: fixed invalid free: sapi/cgi/cgi_main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-73874@lists.php.net to get a copy of this message
Commit: 8591a52fab3fa6656669ed853466a01774398ed9 Author: Anatol Belski <ab@php.net> Mon, 21 Oct 2013 11:15:31 -0700 Parents: ecd03baf6121a708ff46105da133457d012b13c7 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8591a52fab3fa6656669ed853466a01774398ed9 Log: fixed invalid free Changed paths: M sapi/cgi/cgi_main.c Diff: diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 221b002..ec397bf 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 */

« previous php.cvs (#73874) next »