]> granicus.if.org Git - php/commitdiff
merge 292519: fix minor leak in CGI sapi (happened once per child) (tony2001)
authorJohannes Schlüter <johannes@php.net>
Wed, 20 Jan 2010 16:02:28 +0000 (16:02 +0000)
committerJohannes Schlüter <johannes@php.net>
Wed, 20 Jan 2010 16:02:28 +0000 (16:02 +0000)
sapi/cgi/fastcgi.c

index ad4f74b8058fb0d941030e1058384614e5de13bd..eab1ad23d89b14b3be584de26fa8736e91e5f6a5 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