vmstat: free before return
Previous commit the free was added after the return. That doesn't
work as planned.
References:
commit 6151b794c6
This commit is contained in:
parent
19a515e314
commit
55f7dd0648
2
vmstat.c
2
vmstat.c
@ -464,8 +464,8 @@ static int diskpartition_format(const char *partition_name)
|
|||||||
if (infinite_updates || i+1 < num_updates)
|
if (infinite_updates || i+1 < num_updates)
|
||||||
sleep(sleep_time);
|
sleep(sleep_time);
|
||||||
}
|
}
|
||||||
return 0;
|
|
||||||
procps_diskstat_unref(&disk_stat);
|
procps_diskstat_unref(&disk_stat);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void diskheader(void)
|
static void diskheader(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user