summaryrefslogtreecommitdiff
path: root/src/journal/journal-file.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-12-10 11:25:14 +0100
committerLennart Poettering <lennart@poettering.net>2015-12-10 11:35:52 +0100
commitf649045c10ace1b49cb6fbefdc33747a1aab28bc (patch)
tree19ffd9fbf0e0d187f5c3f425d2285e849a536155 /src/journal/journal-file.c
parent9eae2bf3189c07e30a752e38b2ad3856450f1d06 (diff)
journal: make mmap_cache_unref() a NOP when NULL is passed, like all other destructors
Diffstat (limited to 'src/journal/journal-file.c')
-rw-r--r--src/journal/journal-file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index f9ff9545dd..6f09301521 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -169,8 +169,7 @@ JournalFile* journal_file_close(JournalFile *f) {
safe_close(f->fd);
free(f->path);
- if (f->mmap)
- mmap_cache_unref(f->mmap);
+ mmap_cache_unref(f->mmap);
ordered_hashmap_free_free(f->chain_cache);