From 6c6c326f0634842ba7ab84cc262282e879b7da1c Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 21 Jul 2008 15:32:20 +0300 Subject: [PATCH] obexd: Fix socket descriptor leak --- obexd/src/obex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/obexd/src/obex.c b/obexd/src/obex.c index 6fcf0f7cb..0e8bff0e7 100644 --- a/obexd/src/obex.c +++ b/obexd/src/obex.c @@ -906,6 +906,7 @@ gint obex_session_start(gint fd, struct server *server) g_io_add_watch_full(io, G_PRIORITY_DEFAULT, G_IO_IN | G_IO_HUP | G_IO_ERR | G_IO_NVAL, obex_handle_input, obex, obex_handle_destroy); + g_io_channel_set_close_on_unref(io, TRUE); g_io_channel_unref(io); return 0;