mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
sd-journal: return null when mmap_cache_new fails
This commit is contained in:
parent
9f89986d2b
commit
f284860764
@ -1445,6 +1445,7 @@ static sd_journal *journal_new(int flags, const char *path) {
|
||||
hashmap_free(j->directories_by_path);
|
||||
free(j->path);
|
||||
free(j);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return j;
|
||||
|
Loading…
Reference in New Issue
Block a user