fix: don't leak memory...

There's still memory being leaked by the wayland stuff
This commit is contained in:
2025-09-26 16:45:31 -04:00
parent afa4e48757
commit 22fcfcdba9
2 changed files with 3 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ char
f = fopen(d, "r");
if (!f) {
log_fatal("battery directory does not exist");
free(d);
return NULL;
}
free(d);

View File

@@ -107,4 +107,6 @@ parse_config_file(char *path)
set_int_conf(led_blink_trigger_level, led_blink, "power_source");
set_str_conf(led_blink_timing_formula, led_blink, "timing_formula");
set_str_conf(acpi_daemon_socket_path, acpi_daemon, "socket_path");
toml_free(config);
}