diff options
Diffstat (limited to 'src/journal/journald-server.c')
-rw-r--r-- | src/journal/journald-server.c | 3 |
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; |