1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 00:51:24 +03:00

sysv-generator: free LookupPaths also on error

Followup for 7a03974a6f.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2015-04-11 12:00:27 -04:00
parent c89280f811
commit f8bc41822b
Notes: Lennart Poettering 2015-05-21 18:53:24 +02:00
Backport: bugfix

View File

@ -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;
}