Fix: Memory Leak in HAL layer.
[platform/core/connectivity/bluetooth-frwk.git] / bt-api / bt-hid-device.c
index 803996f..e0e8a53 100644 (file)
@@ -120,7 +120,7 @@ static hid_connected_device_info_t *__find_hid_info_with_address(const char *rem
 
        for (l = device_list; l != NULL; l = l->next) {
                hid_connected_device_info_t *info = l->data;
-               if (g_strcmp0((const char *)info->address, (const char *)remote_addr) == 0)
+               if (strcasecmp((const char *)info->address, (const char *)remote_addr) == 0)
                        return info;
        }
        return NULL;