summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2009-12-23 09:40:28 (GMT)
committerAntony Dovgal <tony2001@php.net>2009-12-23 09:40:28 (GMT)
commit6a9d78f1022cdf6ecfe484686e4a9cd99335a690 (patch)
treec5f5ec20252a668ce74eea80384621c762b113e3 /sapi
parent31deb65a9dcc1dec081a4f0154cc7784fcaecf26 (diff)
downloadphp-6a9d78f1022cdf6ecfe484686e4a9cd99335a690.tar.gz
fix minor leak in CGI sapi (happened once per child)
Diffstat (limited to 'sapi')
-rw-r--r--sapi/cgi/fastcgi.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sapi/cgi/fastcgi.c b/sapi/cgi/fastcgi.c
index 0cf94fe..33d366a 100644
--- a/sapi/cgi/fastcgi.c
+++ b/sapi/cgi/fastcgi.c
@@ -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