Fix the Svace issue 15/80215/1 accepted/tizen/common/20160715.175547 accepted/tizen/ivi/20160717.034820 accepted/tizen/mobile/20160717.034802 accepted/tizen/wearable/20160717.034703 submit/tizen/20160715.084941
authorHyuk Lee <hyuk0512.lee@samsung.com>
Fri, 15 Jul 2016 08:32:12 +0000 (17:32 +0900)
committerHyuk Lee <hyuk0512.lee@samsung.com>
Fri, 15 Jul 2016 08:32:12 +0000 (17:32 +0900)
Change-Id: I5c01ed8a368aa98ce9543a9330766fc863f1591d
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
ag-agent/bluetooth-ag-agent.c

index c78474d..9e05cd9 100755 (executable)
@@ -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;
        }