journalctl: call all cleanup functions before raise()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 20 Jan 2024 13:14:14 +0000 (22:14 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 11 Feb 2024 17:36:20 +0000 (02:36 +0900)
commit64347b9723c005d0c501329b189969324f995e96
treea08f657a56ac22c2ad52c56060fb8b69ff05f562
parent51fb0d30c78b7b7822e4a9ccf016894fd3a1e600
journalctl: call all cleanup functions before raise()

Note, even with this, memory allocated internally by glibc is not freed.
But, at least, memory explicitly allocated by us is freed cleanly even
Ctrl-C is pressed during 'journalctl --follow'.

Closes #30995.
src/journal/journalctl.c
src/shared/generator.h
src/shared/main-func.h