]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/main.c
core: Fix memory leaks
authorŁukasz Stelmach <l.stelmach@samsung.com>
Tue, 21 Jun 2022 10:12:01 +0000 (12:12 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 22 Jun 2022 00:31:17 +0000 (01:31 +0100)
commit919ea64f69f710840c1bc93f0f7cb7c51aae45d0
treedcfe89b1cca63d45f6944ea98869be7802083ead
parentf304d038845a2f5e5c02512a099dfeb4a70ee883
core: Fix memory leaks

arg_early_core_pattern and arg_watchdog_device hold pointers to memory
allocated with strdup() (inside path_make_absolute_cwd). The memory needs
to be freed in reset_arguments() during reload rather than forgotten.
src/core/main.c