]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: fix memory leaks in users of bus_map_all_properties() 196/head
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 14 Jun 2015 13:08:52 +0000 (15:08 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Sun, 14 Jun 2015 13:08:52 +0000 (15:08 +0200)
commite7e55dbdc38f929805ab2407fbd50886043a9e7c
tree8b159323816ae571765dbbd883f3f0d7a0ba3a4e
parentaa75494ad5cdf7bede947212ad8c8356d78580fa
tree-wide: fix memory leaks in users of bus_map_all_properties()

If you use bus_map_all_properties(), you must be aware that it might
touch output variables even though it may fail. This is, because we parse
many different bus-properties and cannot tell how to clean them up, in
case we fail deep down in the parser.

Fix all callers of bus_map_all_properties() to correctly cleanup any
context structures at all times.
src/locale/localectl.c
src/login/loginctl.c
src/machine/machinectl.c
src/systemctl/systemctl.c
src/timedate/timedatectl.c