From 7c8659b7260de5f6328fcdd7a9a49a0c35af120e Mon Sep 17 00:00:00 2001 From: Hyuk Lee Date: Fri, 15 Jul 2016 17:32:12 +0900 Subject: [PATCH] Fix the Svace issue Change-Id: I5c01ed8a368aa98ce9543a9330766fc863f1591d Signed-off-by: Hyuk Lee --- ag-agent/bluetooth-ag-agent.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ag-agent/bluetooth-ag-agent.c b/ag-agent/bluetooth-ag-agent.c index c78474d..9e05cd9 100755 --- a/ag-agent/bluetooth-ag-agent.c +++ b/ag-agent/bluetooth-ag-agent.c @@ -1950,6 +1950,7 @@ static int __bt_ag_sco_connect(bt_ag_info_t *hs) if (err < 0 && !(errno == EINPROGRESS || errno == EAGAIN)) { ERR("ERROR: sco socket connect failed : %d", err); ERR("Close SCO skt"); + g_io_channel_unref(io); close(sco_skt); return BT_HFP_AGENT_ERROR_INTERNAL; } -- 2.7.4