From: Steinar H. Gunderson Date: Tue, 16 Apr 2013 20:39:46 +0000 (+0200) Subject: Fix a leak in the stats thread. X-Git-Tag: 1.0.0~83 X-Git-Url: https://git.sesse.net/?p=cubemap;a=commitdiff_plain;h=60dd549bbb99f6ebc4c083e9076e4af425bb219b;ds=sidebyside Fix a leak in the stats thread. --- diff --git a/stats.cpp b/stats.cpp index fa483bf..24bc23f 100644 --- 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,