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)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 May 2015 20:36:35 +0000 (22:36 +0200)
commit2f50a2d55bf0a8b5959a6864ae1b39e7e9e0ce08
tree779c6ffc76df26e341c2704fb0a7435c1037fb99
parent1dff3202941786dd00060f078f6b031efe52d3c3
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/libsystemd/sd-bus/test-bus-chat.c