diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2018-03-12 15:28:50 +0100 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2018-03-12 18:38:13 +0100 |
commit | 9d1cdce2b4892eb2204533c8ea68466fa9dd1441 (patch) | |
tree | ef34f61b2a942f61a8f901479766fc9356110932 | |
parent | a0ac4c40225a3fe09055490554cde89edb991e50 (diff) |
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
-rw-r--r-- | dbus/dbus-sysdeps-unix.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index 73c59acbc..249cf77e9 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -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) { |