]> granicus.if.org Git - php/commitdiff
fixed invalid free
authorAnatol Belski <ab@php.net>
Mon, 21 Oct 2013 18:15:31 +0000 (11:15 -0700)
committerAnatol Belski <ab@php.net>
Mon, 21 Oct 2013 18:15:31 +0000 (11:15 -0700)
sapi/cgi/cgi_main.c

index 221b0021756dc11c3638ce69f473463f946b8fd1..ec397bf3aeef47cdbd2cb754f8e9407e1e629f4a 100644 (file)
@@ -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 */