From 4084a75441e44611aa457cc47b2435c78b2d3fc7 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Sun, 13 Apr 2014 15:51:03 +0200 Subject: [PATCH] Free counters struct in stats_flush --- stats.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/stats.c b/stats.c index e4cc2c1c4..5e17dcd7b 100644 --- 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 */ -- 2.47.2