1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-03 17:47:28 +03:00

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-04-30 07:02:34 +09:00
parent f11de491ca
commit 5b895f56c6

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);