From 33451a942026fc886e245a2e748dac48bd1bcb21 Mon Sep 17 00:00:00 2001 From: Nikos Ntarmos Date: Thu, 28 May 2009 16:42:27 +0300 Subject: [PATCH] free(3) previously strndup(3)'ed diskio.dev Signed-off-by: Nikos Ntarmos Signed-off-by: Brenden Matthews --- src/diskio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/diskio.c b/src/diskio.c index ce4b22bc..0f0ff154 100644 --- a/src/diskio.c +++ b/src/diskio.c @@ -56,6 +56,8 @@ void clear_diskio_stats(void) while (stats.next) { cur = stats.next; stats.next = stats.next->next; + if (cur->dev) + free(cur->dev); free(cur); } }