From: Simon McVittie Date: Tue, 24 Jul 2018 12:21:37 +0000 (+0100) Subject: server-unix: Don't leak address of systemd server on success X-Git-Tag: dbus-1.12.12~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7d4b00a79a651f9f00725a23c85cf0320d4c2e52;p=thirdparty%2Fdbus.git server-unix: Don't leak address of systemd server on success Bug: https://bugs.freedesktop.org/show_bug.cgi?id=107320 Signed-off-by: Simon McVittie Reviewed-by: Philip Withnall (cherry picked from commit d98c43c697fbeb104463dcf2da36d0d855bfb367) --- diff --git a/dbus/dbus-server-unix.c b/dbus/dbus-server-unix.c index 534e1d5fe..c7ace2bca 100644 --- a/dbus/dbus-server-unix.c +++ b/dbus/dbus-server-unix.c @@ -249,6 +249,7 @@ _dbus_server_listen_platform_specific (DBusAddressEntry *entry, goto systemd_err; dbus_free (fds); + _dbus_string_free (&address); return DBUS_SERVER_LISTEN_OK;