# | Line 576 | Line 576 | diskio_stat_t *get_diskio_stats(int *entries){ | |
---|---|---|
576 | n++; | |
577 | } | |
578 | ||
579 | + | if(f != NULL) fclose(f); |
580 | + | |
581 | + | /* This code relies on /proc/partions existing, and it all being malloc'ed above. |
582 | + | |
583 | if (!has_pp_stats) { | |
584 | /* This is an older kernel without stats in /proc/partitions. | |
585 | Read what we can from /proc/stat instead. */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |