| # | Line 91 | Line 91 | char *get_disk_stats(){ | |
|---|---|---|
| 91 | ||
| 92 | } | |
| 93 | ||
| 94 | + | if((fclose(f))!=0){ |
| 95 | + | errf("Failed to close mnttab"); |
| 96 | + | return NULL; |
| 97 | + | } |
| 98 | + | |
| 99 | #endif | |
| 100 | #ifdef linux | |
| 101 | if ((f=fopen("/etc/mtab", "r" ))==NULL){ | |
| # | Line 179 | Line 184 | char *get_disk_stats(){ | |
| 184 | sd_ptr=sd_ptr->next_disk; | |
| 185 | counter++; | |
| 186 | } | |
| 187 | < | |
| 187 | > | xml_disk_stats_ptr=xml_disk_stats; |
| 188 | xml_disk_stats=strf("%s</disk>",xml_disk_stats); | |
| 189 | + | free(xml_disk_stats_ptr); |
| 190 | ||
| 191 | /* Cleaning up */ | |
| 192 | sd_ptr=sd; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |