sd-journal: check that the journal file is not stored in .newest_by_boot_id on free

This commit is contained in:
Yu Watanabe
2023-05-01 14:24:55 +09:00
parent f11de491ca
commit 5b895f56c6
+2
View File
@@ -285,6 +285,8 @@ JournalFile* journal_file_close(JournalFile *f) {
if (!f)
return NULL;
assert(f->newest_boot_id_prioq_idx == PRIOQ_IDX_NULL);
if (f->cache_fd)
mmap_cache_fd_free(f->cache_fd);