1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 04:32:55 +00:00

free(3) previously strndup(3)'ed diskio.dev

Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Signed-off-by: Brenden Matthews <brenden@rty.ca>
This commit is contained in:
Nikos Ntarmos 2009-05-28 16:42:27 +03:00 committed by Brenden Matthews
parent dc2a8e1de8
commit 33451a9420

View File

@ -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);
}
}