core: add forgotten return in error path
If we get an error here, this is most likely oom, and we should not continue.
This commit is contained in:
@@ -4782,7 +4782,7 @@ int unit_load_fragment(Unit *u) {
|
||||
&u->manager->unit_name_map,
|
||||
&u->manager->unit_path_cache);
|
||||
if (r < 0)
|
||||
log_error_errno(r, "Failed to rebuild name map: %m");
|
||||
return log_error_errno(r, "Failed to rebuild name map: %m");
|
||||
|
||||
r = unit_file_find_fragment(u->manager->unit_id_map,
|
||||
u->manager->unit_name_map,
|
||||
|
||||
Reference in New Issue
Block a user