commit b54d1205d866a0bbc3b00c511dace77aa7113160
parent d735bb99a9e97619e633257ea001b42e2bfe95a5
Author: g-rden <94605617+g-rden@users.noreply.github.com>
Date: Thu, 20 Nov 2025 09:21:25 +0000
swaynag/main: free config_path
Otherwise config_path is never free'd
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/swaynag/main.c b/swaynag/main.c
@@ -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;
}