From: Atul Rai Date: Thu, 12 Apr 2018 11:46:12 +0000 (+0530) Subject: Fix bluetooth-ag-agent crash [JIRA-TFIVE-1145] X-Git-Tag: submit/tizen/20180416.022849 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Ftags%2Fsubmit%2Ftizen%2F20180416.022849;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-agent.git Fix bluetooth-ag-agent crash [JIRA-TFIVE-1145] This patch removes g_free(path) in __bt_ag_agent_filter_cb to fix double free of path object. Change-Id: I7df6dd639f43bc006e53e4aac8d8d4ae11e94aad Signed-off-by: Atul Rai --- diff --git a/ag-agent/bluetooth-ag-agent.c b/ag-agent/bluetooth-ag-agent.c index ffa595d..099485c 100644 --- a/ag-agent/bluetooth-ag-agent.c +++ b/ag-agent/bluetooth-ag-agent.c @@ -4077,7 +4077,6 @@ static void __bt_ag_agent_filter_cb(GDBusConnection *connection, __bt_ag_agent_unregister(obj_path); } } - g_free(path); if (optional_param) g_variant_unref(optional_param);