diff --git a/src/linux.c b/src/linux.c index d4f43de5..caa8fd04 100644 --- a/src/linux.c +++ b/src/linux.c @@ -1795,6 +1795,7 @@ void get_battery_stuff(char *buffer, unsigned int n, const char *bat, int item) strncpy(last_battery_str[idx], "AC", 64); } } + fclose(acpi_bat_fp[idx]); } else { /* APM */ if (apm_bat_fp[idx] == NULL) {