diff options
author | Christian Dywan <christian.dywan@lanedo.com> | 2011-01-18 16:00:05 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-01-18 16:00:05 +0000 |
commit | 40b1fc5fffe6eacd994af8c0ac320cafc1eae5d2 (patch) | |
tree | 43480c752ea0aaaa20246c9843f2a7392a18f636 | |
parent | 4e411da35ff2d0250a5c0e2492181981f5a1857d (diff) |
_dbus_listen_tcp_socket: free listen_fd in the error case
Origin: vendor, Maemo
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=29881
Bug-NB: NB#180486
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
-rw-r--r-- | dbus/dbus-sysdeps-unix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dbus/dbus-sysdeps-unix.c b/dbus/dbus-sysdeps-unix.c index 56761e60..7635264f 100644 --- a/dbus/dbus-sysdeps-unix.c +++ b/dbus/dbus-sysdeps-unix.c @@ -1438,6 +1438,7 @@ _dbus_listen_tcp_socket (const char *host, dbus_set_error (error, _dbus_error_from_errno (errno), "Failed to bind socket \"%s:%s\": %s", host ? host : "*", port, _dbus_strerror (errno)); + dbus_free (listen_fd); return -1; } |