X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fload-fragment.c;h=79b0893addef64adcf7500a20fbbd3e68a933381;hb=84e3543ef4c4758621f8a304b14642072303ef82;hp=5f5e37397b222c4354be13ef5eb02bc527eb0bb2;hpb=a4ddf82766c41627bd94c609bb55983f4b81814f;p=elogind.git diff --git a/src/load-fragment.c b/src/load-fragment.c index 5f5e37397..79b0893ad 100644 --- a/src/load-fragment.c +++ b/src/load-fragment.c @@ -1483,7 +1483,6 @@ static int load_from_path(Unit *u, const char *path) { #undef EXEC_CONTEXT_CONFIG_ITEMS const char *sections[3]; - char *k; int r; Set *symlink_names; FILE *f = NULL; @@ -1524,7 +1523,7 @@ static int load_from_path(Unit *u, const char *path) { } else { char **p; - STRV_FOREACH(p, u->meta.manager->unit_path) { + STRV_FOREACH(p, u->meta.manager->lookup_paths.unit_path) { /* Instead of opening the path right away, we manually * follow all symlinks and add their name to our unit @@ -1581,10 +1580,7 @@ static int load_from_path(Unit *u, const char *path) { r = 0; finish: - while ((k = set_steal_first(symlink_names))) - free(k); - - set_free(symlink_names); + set_free_free(symlink_names); free(filename); if (f)