sd-journal: return null when mmap_cache_new fails

This commit is contained in:
Lukas Nykryn
2012-08-23 13:53:30 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 9f89986d2b
commit f284860764
+1
View File
@@ -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;