]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Free counters struct in stats_flush
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 13 Apr 2014 13:51:03 +0000 (15:51 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 13 Apr 2014 13:51:03 +0000 (15:51 +0200)
stats.c

diff --git a/stats.c b/stats.c
index e4cc2c1c4a2cb1b6f9bfab121d2e5e6e738c6d1c..5e17dcd7b29b2c5975f98379acde97af49d17bcd 100644 (file)
--- a/stats.c
+++ b/stats.c
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2002-2004 Andrew Tridgell
- * Copyright (C) 2009-2012 Joel Rosdahl
+ * Copyright (C) 2009-2012, 2014 Joel Rosdahl
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License as published by the Free
@@ -261,6 +261,8 @@ stats_flush(void)
                cleanup_dir(conf, p);
                free(p);
        }
+
+       counters_free(counters);
 }
 
 /* update a normal stat */