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:
parent
f11de491ca
commit
5b895f56c6
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user