Fix bluetooth-ag-agent crash [JIRA-TFIVE-1145] 12/175812/1 accepted/tizen/unified/20180416.213849 submit/tizen/20180416.022849
authorAtul Rai <a.rai@samsung.com>
Thu, 12 Apr 2018 11:46:12 +0000 (17:16 +0530)
committerAtul Rai <a.rai@samsung.com>
Thu, 12 Apr 2018 11:49:04 +0000 (17:19 +0530)
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 <a.rai@samsung.com>
ag-agent/bluetooth-ag-agent.c

index ffa595d..099485c 100644 (file)
@@ -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);