accesslog: Explicitly close logfile when exiting.
[ashd.git] / src / accesslog.c
index 0c292c8..f17eebe 100644 (file)
@@ -395,6 +395,7 @@ int main(int argc, char **argv)
        if(pfd[1].revents & POLLHUP)
            break;
     }
+    fclose(out);
     if(pidfile != NULL)
        unlink(pidfile);
     return(0);