]> git.sesse.net Git - cubemap/blobdiff - stats.cpp
New run of include-what-you-use.
[cubemap] / stats.cpp
index fa483bf3a617fbed566ac1d053ac21e6e115c858..8e4443cf14d4f2ce478c702a1bbb0127fa8f461b 100644 (file)
--- a/stats.cpp
+++ b/stats.cpp
@@ -1,12 +1,12 @@
+#include <errno.h>
 #include <fcntl.h>
+#include <poll.h>
 #include <stddef.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
 #include <time.h>
 #include <unistd.h>
-#include <sys/poll.h>
-#include <errno.h>
 #include <vector>
 
 #include "client.h"
@@ -74,6 +74,7 @@ void StatsThread::do_work()
                        log_perror("rename");
                        unlink(filename);
                }
+               free(filename);
 
 sleep:
                // Wait until the stop_fd pipe is closed, stats_interval timeout,