]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
bus: Free address (from --address) when we have finished using it
authorSimon McVittie <smcv@collabora.com>
Tue, 24 Jul 2018 12:18:48 +0000 (13:18 +0100)
committerSimon McVittie <smcv@collabora.com>
Thu, 23 Aug 2018 17:23:21 +0000 (18:23 +0100)
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>
bus/main.c

index 28223899c31485fd85b1ff1695cb24cf954232cc..6e8859aae19a3c037b4026387b6dab2fbd281d29 100644 (file)
@@ -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",