From ade882f16f67ffc7a9b73231e401e30bb61cbcfb Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Tue, 25 Nov 2025 18:40:10 +0100 Subject: [PATCH] sd-journal: fix a copy-paste error Dereference the Directory pointer in the debug message instead of the (probably already freed) JournalFile one. --- src/libsystemd/sd-journal/sd-journal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-journal/sd-journal.c b/src/libsystemd/sd-journal/sd-journal.c index d29d1ad1f71..696f336945b 100644 --- a/src/libsystemd/sd-journal/sd-journal.c +++ b/src/libsystemd/sd-journal/sd-journal.c @@ -3048,7 +3048,7 @@ static void process_q_overflow(sd_journal *j) { if (m->is_root) /* Never GC root directories */ continue; - log_debug("Directory '%s' hasn't been seen in this enumeration, removing.", f->path); + log_debug("Directory '%s' hasn't been seen in this enumeration, removing.", m->path); directory_free(m); } -- 2.47.3