]> git.sesse.net Git - cubemap/blobdiff - stats.cpp
Fix a leak in the stats thread.
[cubemap] / stats.cpp
index fa483bf3a617fbed566ac1d053ac21e6e115c858..24bc23f6cbda30c567214b6e5fe29441793b50bd 100644 (file)
--- a/stats.cpp
+++ b/stats.cpp
@@ -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,