diff options
Diffstat (limited to 'src/core/manager.c')
-rw-r--r-- | src/core/manager.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/manager.c b/src/core/manager.c index 3e87aa969b..7d573f3abb 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -3092,9 +3092,10 @@ void manager_update_failed_units(Manager *m, Unit *u, bool failed) { size = set_size(m->failed_units); - if (failed) - set_put(m->failed_units, u); - else + if (failed) { + if (set_put(m->failed_units, u) < 0) + log_oom(); + } else set_remove(m->failed_units, u); if (set_size(m->failed_units) != size) |