1
0
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:
Thomas Hindoe Paaboel Andersen 2015-04-26 14:43:40 +02:00
parent 965288c5ee
commit 5921fc3cc3

View File

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