swaynag/main: free config_path

Otherwise config_path is never free'd
This commit is contained in:
g-rden 2025-11-20 09:21:25 +00:00 committed by Kenny Levinsen
parent d735bb99a9
commit b54d1205d8

View file

@ -45,6 +45,7 @@ int main(int argc, char **argv) {
if (config_path) {
sway_log(SWAY_DEBUG, "Loading config file: %s", config_path);
status = swaynag_load_config(config_path, &swaynag, types);
free(config_path);
if (status != 0) {
goto cleanup;
}