summaryrefslogtreecommitdiffstats
path: root/serial
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2008-05-05 13:09:03 +0000
committerClaudio Takahasi <claudio.takahasi@openbossa.org>2008-05-05 13:09:03 +0000
commite5efdf9f53353ad7b8e704c4b7ed42d1052ece82 (patch)
treeab31508c372af876438492a9b92c46e5ac3de211 /serial
parent93123d3eccdb503246f10b40ef2b62418bda6e8f (diff)
serial: missing channel unref
Diffstat (limited to 'serial')
-rw-r--r--serial/manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/serial/manager.c b/serial/manager.c
index dd776ac8..eb49f8e9 100644
--- a/serial/manager.c
+++ b/serial/manager.c
@@ -375,6 +375,7 @@ static void rfcomm_connect_cb(GIOChannel *chan, int err_cb, gpointer user_data)
sk = g_io_channel_unix_get_fd(chan);
pc->id = ioctl(sk, RFCOMMCREATEDEV, &req);
+ g_io_channel_unref(chan);
if (pc->id < 0) {
err = errno;
error("ioctl(RFCOMMCREATEDEV): %s (%d)", strerror(err), err);