From 1323de8a1bf11a4d0a9caff461912fb125c1a2ce Mon Sep 17 00:00:00 2001 From: sulincix Date: Sun, 17 Nov 2024 13:17:54 +0000 Subject: [PATCH] fix memory issue about sysconf jobs --- src/operations/utility/sysconf.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/operations/utility/sysconf.vala b/src/operations/utility/sysconf.vala index 6f714a3..0bdd961 100755 --- a/src/operations/utility/sysconf.vala +++ b/src/operations/utility/sysconf.vala @@ -16,7 +16,7 @@ private static int sysconf_main (string[] args) { } jobs j = new jobs(); foreach (string hook in find (get_configdir () + "/sysconf.d")) { - j.add((void*)run_sysconf, hook); + j.add((void*)run_sysconf, strdup(hook)); } j.run(); restore_env();