summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2018-07-24 13:18:48 +0100
committerSimon McVittie <smcv@collabora.com>2018-08-29 19:04:08 +0100
commitf17c768de0b37573058bf49ad87fcc868bae4ac3 (patch)
tree36cd083cec4e1281e5499d55f5b1189ed3fed42c
parentee14b13dd32d617cf2255e71c89841ce8b5eff9e (diff)
downloaddbus-f17c768de0b37573058bf49ad87fcc868bae4ac3.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> (cherry picked from commit 7ae750c4e887b2d63f87caaf2162125ec3217fcc)
-rw-r--r--bus/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bus/main.c b/bus/main.c
index b3fcddd0..4ee3f75d 100644
--- a/bus/main.c
+++ b/bus/main.c
@@ -692,6 +692,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",