aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorg-rden <94605617+g-rden@users.noreply.github.com>2025-11-20 09:21:25 +0000
committerKenny Levinsen <kl@kl.wtf>2025-11-20 12:31:30 +0100
commitb54d1205d866a0bbc3b00c511dace77aa7113160 (patch)
tree618f647ac256970008751291ff3777e6d98f01e9
parentd735bb99a9e97619e633257ea001b42e2bfe95a5 (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;
}