fix: don't leak memory...
There's still memory being leaked by the wayland stuff
This commit is contained in:
parent
afa4e48757
commit
22fcfcdba9
2 changed files with 3 additions and 0 deletions
|
|
@ -20,6 +20,7 @@ char
|
|||
f = fopen(d, "r");
|
||||
if (!f) {
|
||||
log_fatal("battery directory does not exist");
|
||||
free(d);
|
||||
return NULL;
|
||||
}
|
||||
free(d);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue