]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Remove obsolete call to _dbus_string_free() in unix variant of _dbus_connect_tcp_sock...
authorRalf Habacker <ralf.habacker@freenet.de>
Mon, 12 Mar 2018 14:28:50 +0000 (15:28 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Mon, 12 Mar 2018 17:38:13 +0000 (18:38 +0100)
A DBusString that was initialized with a constant doesn't hold any
allocated memory, so it doesn't need to be freed.

Reviewed-by: Simon McVittie <smcv@collabora.com>
https://bugs.freedesktop.org/show_bug.cgi?id=61922

dbus/dbus-sysdeps-unix.c

index 73c59acbc10281c7c092df0c122eec76faa8c675..249cf77e91f79885392f03cf63e2783c07d9ea47 100644 (file)
@@ -1454,7 +1454,6 @@ _dbus_connect_tcp_socket_with_nonce (const char     *host,
       dbus_bool_t ret;
       _dbus_string_init_const (&noncefileStr, noncefile);
       ret = _dbus_send_nonce (fd, &noncefileStr, error);
-      _dbus_string_free (&noncefileStr);
 
       if (!ret)
         {