aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2025-11-20 09:21:25 +0000
committerFurkan Sahin <furkan-dev@proton.me>2025-11-20 09:21:25 +0000
commit759f63ce5f97dca8082681be2cd70bca45d9e565 (patch)
tree618f647ac256970008751291ff3777e6d98f01e9
parentbab6f56f73869c5f2a9be318c7de98a64bc08111 (diff)
swaynag/main: free config_path
Otherwise config_path is never free'd
-rw-r--r--swaynag/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/swaynag/main.c b/swaynag/main.c
index b68157ff..53c2203f 100644
--- 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;
}