In __bluetooth_pb_get_phone_log_list() if phone log is empty then
contacts_list_first() fails and it frees query. But since caller is
also freeing query double free happens.
Change-Id: If97d2eae0005bab128c0c0ee01697f911f04e41e
if (status != CONTACTS_ERROR_NONE) {
contacts_list_destroy(record_list, TRUE);
- contacts_query_destroy(query);
return;
}
if (status != CONTACTS_ERROR_NONE) {
contacts_list_destroy(record_list, TRUE);
- contacts_query_destroy(query);
return;
}
if (status != CONTACTS_ERROR_NONE) {
contacts_list_destroy(record_list, TRUE);
- contacts_query_destroy(query);
return;
}