summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2012-08-23 12:28:47 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-08-23 13:53:30 +0200
commitf284860764076e2a1f0b34eb4c681bb2762f7889 (patch)
tree83fe3e1283efda72c802b959f4bf055683a89d19 /src
parent9f89986d2beb2c45436cc9e5b4da8bd4a79f100c (diff)
sd-journal: return null when mmap_cache_new fails
Diffstat (limited to 'src')
-rw-r--r--src/journal/sd-journal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/journal/sd-journal.c b/src/journal/sd-journal.c
index 725c979c87..0f7c02ce69 100644
--- a/src/journal/sd-journal.c
+++ b/src/journal/sd-journal.c
@@ -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;