mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-16 18:15:17 +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:
parent
dc2a8e1de8
commit
33451a9420
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user