tmpfiles: add missing OOM check

This commit is contained in:
Lennart Poettering 2018-01-22 15:32:57 +01:00
parent 201be4265f
commit 07982ed1ef
1 changed files with 3 additions and 0 deletions

View File

@ -2261,6 +2261,9 @@ static int parse_line(const char *fname, unsigned line, const char *buffer, bool
}
} else {
existing = new0(ItemArray, 1);
if (!existing)
return log_oom();
r = ordered_hashmap_put(h, i.path, existing);
if (r < 0)
return log_oom();