summaryrefslogtreecommitdiff
path: root/src/sysv-generator
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-04-11 12:00:27 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-04-12 10:20:36 -0400
commitf8bc41822ba19905707a97f9d87262f2c2b6e5fa (patch)
tree251dc1b16b08bf7562275056c446a8ef552b7dec /src/sysv-generator
parentc89280f811a0dc0a2cb071cb83072375345f4bd2 (diff)
sysv-generator: free LookupPaths also on error
Followup for 7a03974a6f.
Diffstat (limited to 'src/sysv-generator')
-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;
}