diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-15 02:45:26 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-15 02:45:26 +0200 |
commit | 53ec43c61d2f0e19c41640c63ec034b2f8cedb89 (patch) | |
tree | b541638dcdc95a7083a3db37fa1b693f1d8866a2 /src/load-fragment.c | |
parent | 3930341a76d2f13e25d59baba4eafaf075e8ffeb (diff) |
set: introduce set_free_free()
Diffstat (limited to 'src/load-fragment.c')
-rw-r--r-- | src/load-fragment.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/load-fragment.c b/src/load-fragment.c index 5f5e37397b..b679fab479 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; @@ -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) |