aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Bühler <stbuehler@web.de>2014-06-03 11:24:00 +0000
committerStefan Bühler <stbuehler@web.de>2014-06-03 11:24:00 +0000
commitf83349150b4acb343f9b999a3220faf6964383de (patch)
treeb4c0b54e2edd2db28087fe45770d83d457998b01
parentb6a989e6e4668fa9040484ac244033f587a57e89 (diff)
downloadspawn-fcgi-f83349150b4acb343f9b999a3220faf6964383de.tar.gz
spawn-fcgi-f83349150b4acb343f9b999a3220faf6964383de.zip
Fix another resource leak in failure case
From: Stefan Bühler <stbuehler@web.de> git-svn-id: svn://svn.lighttpd.net/spawn-fcgi/trunk@70 4a9f3682-ca7b-49a8-9a55-ba4640e46f83
-rw-r--r--src/spawn-fcgi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/spawn-fcgi.c b/src/spawn-fcgi.c
index 8f89d13..cdaf048 100644
--- a/src/spawn-fcgi.c
+++ b/src/spawn-fcgi.c
@@ -132,6 +132,7 @@ static int bind_socket(const char *addr, unsigned short port, const char *unixso
break;
default:
fprintf(stderr, "spawn-fcgi: removing old socket failed: %s\n", strerror(errno));
+ close(fcgi_fd);
return -1;
}
}