dbus: client: monitor: free the line list at exit
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 7 Oct 2024 19:30:24 +0000 (21:30 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 9 Oct 2024 07:33:36 +0000 (09:33 +0200)
commit392cae9e4233040e1d1a171552490fa9be7fd6dd
treee6c052b5f2fd10e86ce2a8418d91f86433e24018
parent85471d394bab3c95e7b968c8a3df9a7ff894fce4
dbus: client: monitor: free the line list at exit

Free the list of line proxies stored for the duration of the program at
exit to fix a memory leak.

Note: these objects need to be kept alive for D-Bus events to work.

Fixes: a5ab76da1e0a ("dbus: add the D-Bus daemon, command-line client and tests")
Link: https://lore.kernel.org/r/20241007-dbus-memory-fixes-v1-3-0d56d1aa032d@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
dbus/client/monitor.c