fix: don't leak memory...
There's still memory being leaked by the wayland stuff
This commit is contained in:
@@ -20,6 +20,7 @@ char
|
|||||||
f = fopen(d, "r");
|
f = fopen(d, "r");
|
||||||
if (!f) {
|
if (!f) {
|
||||||
log_fatal("battery directory does not exist");
|
log_fatal("battery directory does not exist");
|
||||||
|
free(d);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
free(d);
|
free(d);
|
||||||
|
@@ -107,4 +107,6 @@ parse_config_file(char *path)
|
|||||||
set_int_conf(led_blink_trigger_level, led_blink, "power_source");
|
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(led_blink_timing_formula, led_blink, "timing_formula");
|
||||||
set_str_conf(acpi_daemon_socket_path, acpi_daemon, "socket_path");
|
set_str_conf(acpi_daemon_socket_path, acpi_daemon, "socket_path");
|
||||||
|
|
||||||
|
toml_free(config);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user