]> 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 d02a5607580824044255f8f3571a41cdc6a2b635..1c3663d54becafd298e577ddd20e7e3fb3cca17f 100644 (file)
@@ -186,6 +186,9 @@ void fcgi_shutdown(void)
                zend_hash_destroy(&fcgi_mgmt_vars);
        }
        is_fastcgi = 0;
+       if (allowed_clients) {
+               free(allowed_clients);
+       }
 }
 
 int fcgi_init(void)