Skip to content

Commit

Permalink
fix memory issue about sysconf jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Nov 17, 2024
1 parent 876ee75 commit 1323de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/operations/utility/sysconf.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1323de8

Please sign in to comment.