aboutsummaryrefslogtreecommitdiff
path: root/fcgiwrap.c
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2015-04-19 11:15:12 +0200
committerFurkan Sahin <furkan-dev@proton.me>2015-04-19 11:15:12 +0200
commitcc8b67ee4677f9f1d4ab341157725cb5d20cb1d7 (patch)
tree9cac3c7b44e6c29e10864bdffaa0d05fd8638e81 /fcgiwrap.c
parentc0ee2df12159e1c19c2829c5a0762d83c3aa10c9 (diff)
Don't free socket_url at exit
While this generally is the right thing to do, we don't clean up the rest of the memory (we're exiting in a moment, anyway) and conditionally freeing a single variable seems wrong.
Diffstat (limited to 'fcgiwrap.c')
-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;