mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-08 19:50:34 +01:00
Remove obsolete call to _dbus_string_free() in unix variant of _dbus_connect_tcp_socket_with_nonce
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
This commit is contained in:
parent
a0ac4c4022
commit
9d1cdce2b4
1 changed files with 0 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue