mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 00:51:24 +03:00
sysv-generator: avoid freeing uninitialized variable
Would happen if lookup_paths_init returns an error.
This commit is contained in:
parent
965288c5ee
commit
5921fc3cc3
@ -922,7 +922,7 @@ finish:
|
||||
int main(int argc, char *argv[]) {
|
||||
int r, q;
|
||||
_cleanup_lookup_paths_free_ LookupPaths lp = {};
|
||||
_cleanup_(free_sysvstub_hashmapp) Hashmap *all_services;
|
||||
_cleanup_(free_sysvstub_hashmapp) Hashmap *all_services = NULL;
|
||||
SysvStub *service;
|
||||
Iterator j;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user