diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-04-30 07:02:34 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-05-01 14:24:55 +0900 |
commit | 5b895f56c64d35dba0751c9eb63b1caf13187d22 (patch) | |
tree | 1f4607a5edc4e18fee864551d85d95bb975e53b4 /src/libsystemd/sd-journal | |
parent | f11de491ca305dc31378660c6883cc23d16c9ae7 (diff) | |
download | systemd-5b895f56c64d35dba0751c9eb63b1caf13187d22.tar.gz |
sd-journal: check that the journal file is not stored in .newest_by_boot_id on free
Diffstat (limited to 'src/libsystemd/sd-journal')
-rw-r--r-- | src/libsystemd/sd-journal/journal-file.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsystemd/sd-journal/journal-file.c b/src/libsystemd/sd-journal/journal-file.c index f6a86fe599..cf18732d79 100644 --- a/src/libsystemd/sd-journal/journal-file.c +++ b/src/libsystemd/sd-journal/journal-file.c @@ -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); |