From f8bc41822ba19905707a97f9d87262f2c2b6e5fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Sat, 11 Apr 2015 12:00:27 -0400 Subject: [PATCH] sysv-generator: free LookupPaths also on error Followup for 7a03974a6f. --- src/sysv-generator/sysv-generator.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c index e5141c7430f..4ab8f61be35 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; }