mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-03 17:14:21 +08:00
obexd: Fix socket descriptor leak
This commit is contained in:
parent
fbc604f565
commit
6c6c326f06
@ -906,6 +906,7 @@ gint obex_session_start(gint fd, struct server *server)
|
|||||||
g_io_add_watch_full(io, G_PRIORITY_DEFAULT,
|
g_io_add_watch_full(io, G_PRIORITY_DEFAULT,
|
||||||
G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_NVAL,
|
G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_NVAL,
|
||||||
obex_handle_input, obex, obex_handle_destroy);
|
obex_handle_input, obex, obex_handle_destroy);
|
||||||
|
g_io_channel_set_close_on_unref(io, TRUE);
|
||||||
g_io_channel_unref(io);
|
g_io_channel_unref(io);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user