X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=stats.cpp;h=8e4443cf14d4f2ce478c702a1bbb0127fa8f461b;hp=fa483bf3a617fbed566ac1d053ac21e6e115c858;hb=5cd46e39b4063d94f6dc559ae350beeb8406a8f9;hpb=889d72b31a646feeba52acd3fd2616210b550e71 diff --git a/stats.cpp b/stats.cpp index fa483bf..8e4443c 100644 --- a/stats.cpp +++ b/stats.cpp @@ -1,12 +1,12 @@ +#include #include +#include #include #include #include #include #include #include -#include -#include #include #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,