]> granicus.if.org Git - php/commitdiff
fix minor leak in CGI sapi (happened once per child)
authorAntony Dovgal <tony2001@php.net>
Wed, 23 Dec 2009 09:40:28 +0000 (09:40 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 23 Dec 2009 09:40:28 +0000 (09:40 +0000)
sapi/cgi/fastcgi.c

index 0cf94fe3ac04586c2404830735a075583bfa8f63..33d366acf409b712d96590c786be3794acf559b9 100644 (file)
@@ -255,6 +255,9 @@ void fcgi_shutdown(void)
                zend_hash_destroy(&fcgi_mgmt_vars);
        }
        is_fastcgi = 0;
+       if (allowed_clients) {
+               free(allowed_clients);
+       }
 }
 
 #ifdef _WIN32