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 a new issue