chiark / gitweb /
tree-wide: fix memory leaks in users of bus_map_all_properties()
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 14 Jun 2015 13:08:52 +0000 (15:08 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:02:58 +0000 (10:02 +0100)
commit801daa75024fb177df1535f8e16a450bc68619fd
tree4972cfd5d0c58f37ed241547091fb8d9a85ad06b
parentbe954dc04aca638c0f374dc36736e3d1d7100ee8
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/login/loginctl.c