summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-01-26 17:12:10 +0100
committerLennart Poettering <lennart@poettering.net>2023-01-27 09:41:18 +0100
commit23cd1e0962b050da7b917a253f414731df0ae086 (patch)
tree9c63cabdcb4a05b3ad067fe8d79c17e6969e962d
parentboot: Use aarch64 virtual counter (diff)
downloadsystemd-23cd1e0962b050da7b917a253f414731df0ae086.tar.xz
systemd-23cd1e0962b050da7b917a253f414731df0ae086.zip
journal: use TAKE_PTR() at one more place
-rw-r--r--src/journal/journald-server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index 66cf866c5a..022e12d83d 100644
--- a/src/journal/journald-server.c
+++ b/src/journal/journald-server.c
@@ -688,8 +688,7 @@ static int server_archive_offline_user_journals(Server *s) {
if (r < 0)
log_debug_errno(r, "Failed to archive journal file '%s', ignoring: %m", full);
- managed_journal_file_initiate_close(f, s->deferred_closes);
- f = NULL;
+ managed_journal_file_initiate_close(TAKE_PTR(f), s->deferred_closes);
}
return 0;