]> git.sesse.net Git - cubemap/commitdiff
Fix a leak in the stats thread.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 16 Apr 2013 20:39:46 +0000 (22:39 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 16 Apr 2013 20:39:54 +0000 (22:39 +0200)
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,