Fix Svace issue 83/80583/1 accepted/tizen/common/20160719.172608 accepted/tizen/ivi/20160719.060912 accepted/tizen/mobile/20160719.060941 accepted/tizen/wearable/20160719.060920 submit/tizen/20160719.025523
authorDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 19 Jul 2016 02:54:31 +0000 (11:54 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Tue, 19 Jul 2016 02:54:31 +0000 (11:54 +0900)
Change-Id: I54b18ebdceccf945a2b4ba4c7fea1b22d6fb37b2
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
ag-agent/bluetooth-ag-agent.c

index 9e05cd9..95e8173 100755 (executable)
@@ -1933,6 +1933,7 @@ static int __bt_ag_sco_connect(bt_ag_info_t *hs)
                if (err < 0) {
                        ERR("ERROR: sco socket set socket option failed");
                        ERR("Close SCO skt");
+                       g_io_channel_unref(io);
                        close(sco_skt);
                        return BT_HFP_AGENT_ERROR_INTERNAL;
                }