1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 14:55:37 +03:00

journal: use TAKE_PTR() at one more place

This commit is contained in:
Lennart Poettering 2023-01-26 17:12:10 +01:00
parent 2df8574af0
commit 23cd1e0962

View File

@ -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;