summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2018-07-24 13:18:48 +0100
committerSimon McVittie <smcv@collabora.com>2018-08-23 18:23:21 +0100
commit7ae750c4e887b2d63f87caaf2162125ec3217fcc (patch)
treedeece5084b249547020cdf2e444b0f6c581f982a /bus
parent2949a860da10fef7972c9dc06327312827019ba6 (diff)
downloaddbus-7ae750c4e887b2d63f87caaf2162125ec3217fcc.tar.gz
bus: Free address (from --address) when we have finished using it
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107320 Signed-off-by: Simon McVittie <smcv@collabora.com> Reviewed-by: Philip Withnall <withnall@endlessm.com>
Diffstat (limited to 'bus')
-rw-r--r--bus/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bus/main.c b/bus/main.c
index 28223899..6e8859aa 100644
--- a/bus/main.c
+++ b/bus/main.c
@@ -693,6 +693,7 @@ main (int argc, char **argv)
_dbus_string_get_length(&address) > 0 ? &address : NULL,
&error);
_dbus_string_free (&config_file);
+ _dbus_string_free (&address);
if (context == NULL)
{
_dbus_warn ("Failed to start message bus: %s",