diff options
author | Grzegorz Nosek <root@localdomain.pl> | 2015-04-19 11:15:12 +0200 |
---|---|---|
committer | Grzegorz Nosek <root@localdomain.pl> | 2015-04-19 11:15:12 +0200 |
commit | ff11e97f2eddca17427eaf0277c5efa853e58958 (patch) | |
tree | 9cac3c7b44e6c29e10864bdffaa0d05fd8638e81 | |
parent | d9c6cf5cdcdf18dcacd184f587324a10be5027f7 (diff) | |
download | fcgiwrap-ff11e97f2eddca17427eaf0277c5efa853e58958.tar.xz fcgiwrap-ff11e97f2eddca17427eaf0277c5efa853e58958.zip |
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.
-rw-r--r-- | fcgiwrap.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |