summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-13 21:10:06 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-13 23:42:16 -0400
commit9fff898181e71ab6389071b5c35b3ab7112b953e (patch)
tree51cc80a704993dd188dff6744adfc3a38ebb468d /src/core
parentd357562c48ac71e2197ea63bc57671a29ba12cf6 (diff)
core: issue error on oom we can do nothing about
CID #1287142.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/manager.c7
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)