summaryrefslogtreecommitdiff
path: root/src/systemctl/systemctl.c
diff options
context:
space:
mode:
authorDaniel Buch <boogiewasthere@gmail.com>2013-10-27 12:45:52 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-10-27 11:51:22 -0400
commitfb15be839500c39f6c2f006f45306d439e1a7add (patch)
treee95c243d6316ab5c728ff3bd8db68db2f65eb54a /src/systemctl/systemctl.c
parenta501033335ed402c8f7e86fe41a15531ba69abd7 (diff)
path_lookup: moved _cleanup_lookup_paths_free_ from install.c to path-lookup.h
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r--src/systemctl/systemctl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c
index d458c6588d..87a6985cc9 100644
--- a/src/systemctl/systemctl.c
+++ b/src/systemctl/systemctl.c
@@ -4223,7 +4223,7 @@ static int enable_sysv_units(const char *verb, char **args) {
#if defined(HAVE_SYSV_COMPAT) && defined(HAVE_CHKCONFIG)
unsigned f = 1, t = 1;
- LookupPaths paths = {};
+ _cleanup_lookup_paths_free_ LookupPaths paths = {};
if (arg_scope != UNIT_FILE_SYSTEM)
return 0;
@@ -4361,8 +4361,6 @@ static int enable_sysv_units(const char *verb, char **args) {
}
finish:
- lookup_paths_free(&paths);
-
/* Drop all SysV units */
for (f = 0, t = 0; args[f]; f++) {