bt-service: pbap: Fix invalid allocation and free 26/143626/2
authorSyam Sidhardhan <s.syam@samsung.com>
Mon, 31 Jul 2017 09:02:27 +0000 (14:32 +0530)
committerSyam Sidhardhan <s.syam@samsung.com>
Thu, 10 Aug 2017 17:02:09 +0000 (22:32 +0530)
[Problem] Fix invalid free
[Cause & Measure]  (error) Mismatching allocation and deallocation: filters

Change-Id: Ia2efb236dc5af87cf07ad1a5298bdfb0eca1f321
Signed-off-by: Syam Sidhardhan <s.syam@samsung.com>
bt-service/bt-service-pbap.c

index f18b4cb..a45f3af 100644 (file)
@@ -942,7 +942,7 @@ int __bt_pbap_call_get_vcards_list(GDBusProxy *proxy, bt_pbap_data_t *pbap_data)
 
        g_free(folder);
        g_free(order_str);
 
        g_free(folder);
        g_free(order_str);
-       g_hash_table_unref((GHashTable *)filters);
+
        /* In _bt_pbap_get_list(), path(type) is set to "nil", but current type is not null.
             The path should be reset here */
        selected_path.type = -1;
        /* In _bt_pbap_get_list(), path(type) is set to "nil", but current type is not null.
             The path should be reset here */
        selected_path.type = -1;