Bluetooth: Prefer sizeof(*ptr) when allocating memory