summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fcgiwrap.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fcgiwrap.c b/fcgiwrap.c
index 07892ca..edb1fd3 100644
--- a/fcgiwrap.c
+++ b/fcgiwrap.c
@@ -862,16 +862,15 @@ int main(int argc, char **argv)
prefork(nchildren);
fcgiwrap_main();
- if(fd) {
+ if (fd) {
const char *p = socket_url;
close(fd);
- if(socket_url) {
+ if (socket_url) {
if (!strncmp(p, "unix:", sizeof("unix:") - 1)) {
p += sizeof("unix:") - 1;
unlink(p);
}
- free(socket_url);
}
}
return 0;