summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sysv-generator/sysv-generator.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c
index e5141c7430..4ab8f61be3 100644
--- a/src/sysv-generator/sysv-generator.c
+++ b/src/sysv-generator/sysv-generator.c
@@ -921,7 +921,7 @@ finish:
int main(int argc, char *argv[]) {
int r, q;
- LookupPaths lp;
+ _cleanup_lookup_paths_free_ LookupPaths lp = {};
Hashmap *all_services;
SysvStub *service;
Iterator j;
@@ -980,7 +980,5 @@ int main(int argc, char *argv[]) {
continue;
}
- lookup_paths_free(&lp);
-
return EXIT_SUCCESS;
}