chiark / gitweb /
sd-journal: return null when mmap_cache_new fails
authorLukas Nykryn <lnykryn@redhat.com>
Thu, 23 Aug 2012 10:28:47 +0000 (12:28 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 23 Aug 2012 11:53:30 +0000 (13:53 +0200)
src/journal/sd-journal.c

index 725c979..0f7c02c 100644 (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;