chiark / gitweb /
sd-bus: fix memory leak in test-bus-chat
authorCristian Rodríguez <crrodriguez@opensuse.org>
Sun, 10 May 2015 01:14:09 +0000 (22:14 -0300)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 07:23:32 +0000 (08:23 +0100)
commit0666b7f8f0ab1bf562c3c33dcdc4b3fca3baa868
treeaa3a4231fe473f1f95212ffb95ad3fc4aa368376
parentef01fb10f7a4159a2d2800d2c7c60b247e575ba7
sd-bus: fix memory leak in test-bus-chat

Building with address sanitizer enabled on GCC 5.1.x a memory leak
is reported because we never close the bus, fix it by using
cleanup variable attribute.
src/libelogind/sd-bus/test-bus-chat.c