mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-06-04 10:58:23 +02:00
_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>
This commit is contained in:
parent
4e411da35f
commit
40b1fc5fff
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue